@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trullock/page-manager",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
4
4
  "description": "Single page app manager",
5
5
  "exports": {
6
6
  ".": "./src/index.js"
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
  {