Skip to content
Snippets Groups Projects
Commit 019ee09f authored by Pierre-Jean CHANCELLIER's avatar Pierre-Jean CHANCELLIER
Browse files

web extension config

parent 7923d5fc
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,12 @@ export default {
$nuxt.$emit("changeRoute", this.breadcrumb)
},
props: ["error"],
layout: "error"
layout: "error",
mounted() {
if (this.error.statusCode === 404) {
this.$router.push(this.localePath("/"))
}
}
}
</script>
......
......@@ -7,7 +7,7 @@
"trad": "sh ./utils/findMissingI18nKeys.sh",
"build": "npm-run-all -p build-fragment nuxt-build",
"start": "npm-run-all -p build-fragment nuxt-start",
"generate": "npm-run-all -p build-fragment nuxt-generate",
"generate": "npm-run-all -p build-fragment nuxt-generate && cp ./web-ext/* ./dist/",
"analyze": "nuxt build --analyze",
"build-fragment": "node graphql/schemaQuery.js",
"nuxt-build": "nuxt build",
......
function openPage() {
browser.tabs.create({
url: "/fr/index.html"
});
}
browser.browserAction.onClicked.addListener(openPage);
{
"manifest_version": 2,
"name": "Wotwizard UI",
"description": "Le magicien de la toile de confiance",
"version": "1.0.0",
"homepage_url": "https://wotwizard.axiom-team.fr",
"browser_action": {
"browser_style": true,
"default_icon": "/_nuxt/icons/icon_64x64.0424c5.png",
"default_title": "Wotwizard UI"
},
"background" : {
"scripts": ["/launch-web-ext.js"]
},
"icons": {
"64": "/_nuxt/icons/icon_64x64.0424c5.png",
"120": "/_nuxt/icons/icon_120x120.0424c5.png"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment