@factor/app
Advanced tools
Comparing version 1.8.15 to 1.8.22
@@ -12,3 +12,4 @@ /* eslint-disable import/no-unresolved */ | ||
icon: (): string => require("__FIND__/static/icon.svg"), | ||
avatarDefault: "https://fiction-com.s3-us-west-1.amazonaws.com/user-blank-2.png", | ||
// avatarDefault: "https://fiction-com.s3-us-west-1.amazonaws.com/user-blank-2.png", | ||
avatarDefault: "retro", | ||
templatePath: "__FIND__/index.html", | ||
@@ -18,3 +19,3 @@ faviconPath: "__FIND__/static/favicon.png", | ||
dashboard: { | ||
route: "/dashboard", | ||
route: "/", | ||
}, | ||
@@ -21,0 +22,0 @@ metaInfo: { |
{ | ||
"name": "@factor/app", | ||
"version": "1.8.15", | ||
"version": "1.8.22", | ||
"license": "GPL-2.0", | ||
@@ -15,3 +15,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "bc0b6752f48b98dac47aedeaf28eef351495c63d" | ||
"gitHead": "bdf2eba4f78c6e7a243f870ab32983efad438712" | ||
} |
@@ -154,3 +154,3 @@ import { applyFilters, runCallbacks, addFilter } from "@factor/api/hooks" | ||
export const getRouter = (): VueRouter => { | ||
return __routerInstance | ||
return __routerInstance ?? {} | ||
} | ||
@@ -287,3 +287,3 @@ | ||
export const currentRoute = (): Route => { | ||
export const currentRoute = (): Route | undefined => { | ||
return getRouter().currentRoute | ||
@@ -299,3 +299,3 @@ } | ||
return route.matched.some((_) => _.meta.auth) | ||
return route ? route.matched.some((_) => _.meta.auth) : false | ||
} |
67503
852