cradova 3.3.12 → 3.3.13
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/dist/index.js +4 -1
- package/dist/primitives/classes.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -539,6 +539,7 @@ class Page {
|
|
|
539
539
|
this._html = template;
|
|
540
540
|
this._name = name || "Document";
|
|
541
541
|
this._template.setAttribute("id", "page");
|
|
542
|
+
console.log("boohoo 1");
|
|
542
543
|
}
|
|
543
544
|
set errorHandler(errorHandler) {
|
|
544
545
|
this._errorHandler = errorHandler;
|
|
@@ -731,7 +732,8 @@ class RouterBoxClass {
|
|
|
731
732
|
var RouterBox = new RouterBoxClass;
|
|
732
733
|
|
|
733
734
|
class Router {
|
|
734
|
-
|
|
735
|
+
BrowserRoutes(obj) {
|
|
736
|
+
console.log("boohoo 3");
|
|
735
737
|
for (const path in obj) {
|
|
736
738
|
let page = obj[path];
|
|
737
739
|
if (typeof page === "object" && typeof page.then === "function" || typeof page === "function") {
|
|
@@ -806,6 +808,7 @@ class Router {
|
|
|
806
808
|
}
|
|
807
809
|
}
|
|
808
810
|
static _mount() {
|
|
811
|
+
console.log("boohoo 2");
|
|
809
812
|
let doc = document.querySelector("[data-wrapper=app]");
|
|
810
813
|
if (!doc) {
|
|
811
814
|
doc = document.createElement("div");
|
|
@@ -254,7 +254,7 @@ export declare class Router {
|
|
|
254
254
|
*
|
|
255
255
|
* accepts an object containing pat and page
|
|
256
256
|
*/
|
|
257
|
-
|
|
257
|
+
BrowserRoutes(obj: Record<string, Page | promisedPage>): void;
|
|
258
258
|
/**
|
|
259
259
|
Go back in Navigation history
|
|
260
260
|
*/
|