@trullock/page-manager 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +5 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -328,7 +328,11 @@ export async function init(opts) {
|
|
|
328
328
|
|
|
329
329
|
// handle pages whose markup is already loaded in the page
|
|
330
330
|
for (var key in pageHash) {
|
|
331
|
-
if (pageHash[key].pageClass.existingDomSelector) {
|
|
331
|
+
if (pageHash[key].pageClass.existingDomSelector !== undefined) {
|
|
332
|
+
|
|
333
|
+
if(pageHash[key].pageClass.existingDomSelector === null)
|
|
334
|
+
continue;
|
|
335
|
+
|
|
332
336
|
let $html = document.querySelector(pageHash[key].pageClass.existingDomSelector)
|
|
333
337
|
if(!$html)
|
|
334
338
|
{
|