Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit 8ba4101

Browse files
timbotimboBelchy06
andauthored
Expose JSS InsertionPoint (#390)
Signed-off-by: timbotimbo <[email protected]> Co-authored-by: William Belcher <[email protected]>
1 parent af5339b commit 8ba4101

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Frontend/ui-library/src/Styles/PixelStreamingApplicationStyles.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,14 +526,16 @@ export class PixelStreamingApplicationStyle {
526526
customStyles?: Partial<Styles>;
527527
lightModePalette?: ColorPalette;
528528
darkModePalette?: ColorPalette;
529+
jssInsertionPoint?: string | HTMLElement;
529530
}) {
530-
const { customStyles, lightModePalette, darkModePalette } =
531+
const { customStyles, lightModePalette, darkModePalette, jssInsertionPoint } =
531532
options ?? {};
532533
// One time setup with default plugins and settings.
533534
const jssOptions = {
534535
// JSS has many interesting plugins we may wish to turn on
535536
//plugins: [functions(), template(), global(), extend(), nested(), compose(), camelCase(), defaultUnit(options.defaultUnit), expand(), vendorPrefixer(), propsSort()]
536-
plugins: [global(), camelCase()]
537+
plugins: [global(), camelCase()],
538+
insertionPoint: jssInsertionPoint
537539
};
538540

539541
jss.setup(jssOptions);

0 commit comments

Comments
 (0)