Skip to content

Commit

Permalink
gh pages refresh path fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aotearoan committed Jun 28, 2020
1 parent 346020e commit efbcd97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@aotearoan/neon",
"description": "Neon is a design library of components for use with VueJS. It supports light and dark modes and can be extended to support multiple themes",
"version": "0.18.11",
"version": "0.18.12",
"main": "dist/@aotearoan/neon.umd.js",
"types": "dist/@aotearoan/components.d.ts",
"files": [
Expand Down
3 changes: 2 additions & 1 deletion src/app/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ export default class App extends Vue {
public mounted() {
const path = localStorage.getItem('path');
if (path) {
console.error(path);
localStorage.removeItem('path');
this.$router.push({ path: path.replace(process.env.VUE_APP_BASE_URL || '/', '/') });
this.$router.push({ path: path.replace('/neon', '') });
}

NeonModeUtils.init();
Expand Down

0 comments on commit efbcd97

Please sign in to comment.