File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
projects/playground/src/lib Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class PlaygroundModule {
4040
4141 static configure ( configuration : Configuration ) {
4242 PlaygroundModule . setSandboxDefinitions ( configuration . sandboxesDefined ) ;
43- initializePlayground ( configuration . selector ) ;
43+ initializePlayground ( configuration . selector , configuration . htmlTitle ) ;
4444 _middleware . next ( { ..._middleware . value , ...configuration } ) ;
4545 return this ;
4646 }
Original file line number Diff line number Diff line change 11
2- export const initializePlayground = ( elementNameToReplace ?: string ) => {
3- document . getElementsByTagName ( 'title' ) [ 0 ] . innerHTML = 'Playground' ;
2+ export const initializePlayground = ( elementNameToReplace ?: string , htmlTitle : string = 'Playground' ) => {
3+ document . getElementsByTagName ( 'title' ) [ 0 ] . innerHTML = htmlTitle ;
44 if ( elementNameToReplace && elementNameToReplace . length > 0 ) {
55 let appNode = document . getElementsByTagName ( elementNameToReplace ) [ 0 ] ;
66 if ( ! appNode ) {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export interface Configuration {
66 modules ?: any [ ] ;
77 overlay ?: boolean ;
88 sandboxesDefined : Type < Sandboxes > ;
9+ htmlTitle : string ;
910}
1011
1112export interface Middleware {
You can’t perform that action at this time.
0 commit comments