Skip to content

Commit

Permalink
Remove nuxt global var in app template
Browse files Browse the repository at this point in the history
  • Loading branch information
cnotv committed Aug 7, 2024
1 parent a2442d2 commit fc8212f
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions shell/initialize/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,6 @@ export default {
created() {
// add to window so we can listen when ready
window.$globalApp = this;
Object.defineProperty(window, '$nuxt', {
get() {
const isHarvester = this.$globalApp?.$store.getters['currentCluster']?.isHarvester;
if (!isHarvester) {
console.warn('window.$nuxt is deprecated. It would be best to stop using globalState all together. For an alternative you can use window.$globalApp.'); // eslint-disable-line no-console
}
return window.$globalApp;
}
});
this.refreshOnlineStatus();
// Setup the listeners
Expand Down

0 comments on commit fc8212f

Please sign in to comment.