Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
refact: rename terminator.scss/js to inject.scss/js
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzeng committed Jul 15, 2023
1 parent 81b8773 commit 4cbafaf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
},
"scripts": {
"build": "yarn tsc && yarn sass && yarn zip",
"dev": "concurrently --kill-others 'tsc -w' 'sass --watch --no-source-map ./src/css/popup.scss:./src/css/popup.css ./src/css/terminator.scss:./src/css/terminator.css'",
"dev": "concurrently --kill-others 'tsc -w' 'sass --watch --no-source-map ./src/css/popup.scss:./src/css/popup.css ./src/css/inject.scss:./src/css/inject.css'",
"tsc": "tsc",
"sass": "sass --no-source-map ./src/css/popup.scss:./src/css/popup.css ./src/css/terminator.scss:./src/css/terminator.css",
"sass": "sass --no-source-map ./src/css/popup.scss:./src/css/popup.css ./src/css/inject.scss:./src/css/inject.css",
"zip": "zip -r The-Content-Farm-Terminator.zip ./src -x *.ts -x *.scss",
"clean": "rm -f src/scripts/*.js src/css/*.css The-Content-Farm-Terminator.zip"
},
Expand Down
File renamed without changes.
7 changes: 3 additions & 4 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"author": "hyperbola",
"default_locale": "en",
"permissions": [
"storage",
"unlimitedStorage"
"storage"
],
"content_scripts": [
{
Expand Down Expand Up @@ -210,7 +209,7 @@
"/scripts/content-script.js"
],
"css": [
"/css/terminator.css"
"/css/inject.css"
]
}
],
Expand Down Expand Up @@ -412,7 +411,7 @@
"https://www.google.ws/*"
],
"resources": [
"/scripts/terminator.js",
"/scripts/inject.js",
"/scripts/database.js",
"/scripts/util.js"
]
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/content-script.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// https://stackoverflow.com/a/53033388
(async () => {
const src = chrome.runtime.getURL('/scripts/terminator.js')
const src = chrome.runtime.getURL('/scripts/inject.js')
const contentMain = await import(src)
contentMain.init()
})()
File renamed without changes.

0 comments on commit 4cbafaf

Please sign in to comment.