Skip to content

Commit

Permalink
修复css和urlopen
Browse files Browse the repository at this point in the history
  • Loading branch information
Travisun committed Nov 22, 2024
1 parent 636403f commit b85d57b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
chrome.runtime.onInstalled.addListener(() => {
// 在安装后打开指定的 URL
chrome.tabs.create({ url: "https://imgfans.com/chrome-extension/welcome?installed=true" });
});
5 changes: 4 additions & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"manifest_version": 3,
"name": "Imgfans",
"version": "1.0.0",
"version": "1.0.1",
"description": "Upload, share, and manage your images effortlessly. One-click upload with drag & drop support and instant sharing links.",
"permissions": [
"storage",
"activeTab"
],
"background": {
"service_worker": "background.js"
},
"action": {
"default_popup": "popup/index.html",
"default_icon": {
Expand Down
5 changes: 5 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ export default defineConfig({
resolve(__dirname, 'dist/popup/index.html')
)

copyFiles(
resolve(__dirname, 'src/background.js'),
resolve(__dirname, 'dist/background.js')
)

// 清理空目录
try {
// 移除 dist/src/popup
Expand Down

0 comments on commit b85d57b

Please sign in to comment.