Skip to content

Commit

Permalink
import core global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
leoding86 committed Mar 5, 2022
1 parent 35ba66d commit d0d6ab8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/background/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@/core/global';
import Browser from '@/modules/Browser/Browser';
import DownloadRecordPort from '@/modules/Ports/DownloadRecordPort/BackgroundPort';
import IllustHistoryPort from '@/modules/Ports/IllustHistoryPort/BackgroundPort';
Expand Down
7 changes: 1 addition & 6 deletions src/content_scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import '@/content_scripts/styles/dark.scss';

import '@/core/global';
import App2 from './components/App';
import Browser from '@/modules/Browser/Browser';
import I18n from '@/modules/I18n';
Expand Down Expand Up @@ -43,12 +44,6 @@ browser.storage.local.get(null, items => {

document.body.appendChild(container);

if (PRESET_BROWSER === 'firefox') {
window.$_browser = 'firefox';
} else {
window.$_browser = 'default';
}

window.$extension = new Vue({
el: '#__ptk-app',

Expand Down
1 change: 1 addition & 0 deletions src/fanbox/content_scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@/core/global';
import App from '@/fanbox/content_scripts/App.vue';
import Browser from '@/modules/Browser/Browser';
import I18n from '@/modules/I18n';
Expand Down
7 changes: 1 addition & 6 deletions src/options_page/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'vuetify/dist/vuetify.min.css'

import '@/core/global';
import App from './App'
import Browser from '@/modules/Browser/Browser'
import I18n from '@/modules/I18n';
Expand Down Expand Up @@ -38,12 +39,6 @@ try {

window.browser = browser;

if (PRESET_BROWSER === 'firefox') {
window.$_browser = 'firefox';
} else {
window.$_browser = 'default';
}

/**
* Update browser action badge
*/
Expand Down
1 change: 1 addition & 0 deletions src/pixiv_comic/content_scripts/app.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@/core/global';
import App from '@/pixiv_comic/content_scripts/App.vue';
import Browser from '@/modules/Browser/Browser';
import I18n from '@/modules/I18n';
Expand Down
1 change: 1 addition & 0 deletions src/popup_page/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@/core/global';
import App from './App';
import Browser from '@/modules/Browser/Browser';
import I18n from '@/modules/I18n';
Expand Down

0 comments on commit d0d6ab8

Please sign in to comment.