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 {
40
40
41
41
static configure ( configuration : Configuration ) {
42
42
PlaygroundModule . setSandboxDefinitions ( configuration . sandboxesDefined ) ;
43
- initializePlayground ( configuration . selector ) ;
43
+ initializePlayground ( configuration . selector , configuration . htmlTitle ) ;
44
44
_middleware . next ( { ..._middleware . value , ...configuration } ) ;
45
45
return this ;
46
46
}
Original file line number Diff line number Diff line change 1
1
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 ;
4
4
if ( elementNameToReplace && elementNameToReplace . length > 0 ) {
5
5
let appNode = document . getElementsByTagName ( elementNameToReplace ) [ 0 ] ;
6
6
if ( ! appNode ) {
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export interface Configuration {
6
6
modules ?: any [ ] ;
7
7
overlay ?: boolean ;
8
8
sandboxesDefined : Type < Sandboxes > ;
9
+ htmlTitle : string ;
9
10
}
10
11
11
12
export interface Middleware {
You can’t perform that action at this time.
0 commit comments