@trullock/page-manager 1.1.0 → 1.2.0
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
|
@@ -298,6 +298,11 @@ export async function init(opts) {
|
|
|
298
298
|
|
|
299
299
|
await initLoading();
|
|
300
300
|
|
|
301
|
+
await showLoading();
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export async function ready()
|
|
305
|
+
{
|
|
301
306
|
// set initial page
|
|
302
307
|
emitUrlChanged(window.location.pathname + window.location.search + window.location.hash);
|
|
303
308
|
showPage(window.location.pathname + window.location.search + window.location.hash, null, { action: 'load', distance: 0 }).catch(e => {
|
|
@@ -310,7 +315,6 @@ export async function init(opts) {
|
|
|
310
315
|
handleHistoryAction({ action: e.action }, e.url, e.data, page);
|
|
311
316
|
return page;
|
|
312
317
|
});
|
|
313
|
-
|
|
314
318
|
}
|
|
315
319
|
});
|
|
316
320
|
|