|
60 | 60 | */ |
61 | 61 | initFrontend() { |
62 | 62 | // Close Extendify AI assistant for YourHosting (branding ID 5159). |
63 | | - if ( config.brandingId && config.brandingId === 5159 ) { |
| 63 | + if ( config.brandingId && parseInt( config.brandingId, 10 ) === 5159 ) { |
64 | 64 | this.closeExtendifyAssistant(); |
65 | 65 | } |
66 | 66 |
|
|
110 | 110 | console.log( 'PP Guided Tour: Initializing editor context', config ); |
111 | 111 |
|
112 | 112 | // Close Extendify AI assistant for YourHosting (branding ID 5159). |
113 | | - if ( config.brandingId && config.brandingId === 5159 ) { |
| 113 | + if ( config.brandingId && parseInt( config.brandingId, 10 ) === 5159 ) { |
114 | 114 | this.closeExtendifyAssistant(); |
115 | 115 | } |
116 | 116 |
|
|
120 | 120 | console.log( 'PP Guided Tour: wp.domReady fired' ); |
121 | 121 |
|
122 | 122 | // Close Extendify editor sidebar for YourHosting. |
123 | | - if ( config.brandingId && config.brandingId === 5159 ) { |
| 123 | + if ( config.brandingId && parseInt( config.brandingId, 10 ) === 5159 ) { |
124 | 124 | this.closeExtendifyEditorSidebar(); |
125 | 125 | } |
126 | 126 |
|
|
136 | 136 | console.log( 'PP Guided Tour: Using fallback timeout' ); |
137 | 137 |
|
138 | 138 | // Close Extendify editor sidebar for YourHosting. |
139 | | - if ( config.brandingId && config.brandingId === 5159 ) { |
| 139 | + if ( config.brandingId && parseInt( config.brandingId, 10 ) === 5159 ) { |
140 | 140 | this.closeExtendifyEditorSidebar(); |
141 | 141 | } |
142 | 142 |
|
|
1498 | 1498 | * Show tour completion message. |
1499 | 1499 | */ |
1500 | 1500 | showCompletionMessage() { |
| 1501 | + const brandingIdNum = config.brandingId ? parseInt( config.brandingId, 10 ) : 0; |
1501 | 1502 | console.log( 'PP Guided Tour: showCompletionMessage called', { |
1502 | 1503 | brandingId: config.brandingId, |
1503 | | - isYourHosting: config.brandingId === 5159, |
| 1504 | + brandingIdNum: brandingIdNum, |
| 1505 | + isYourHosting: brandingIdNum === 5159, |
1504 | 1506 | } ); |
1505 | 1507 |
|
1506 | 1508 | // Check for YourHosting branding (with safeguard). |
1507 | | - if ( config.brandingId && config.brandingId === 5159 ) { |
| 1509 | + if ( brandingIdNum === 5159 ) { |
1508 | 1510 | this.showYourHostingCompletionMessage(); |
1509 | 1511 | return; |
1510 | 1512 | } |
|
0 commit comments