You've already forked bilibili-subtitle
init
This commit is contained in:
11
fixChrome.cjs
Normal file
11
fixChrome.cjs
Normal file
@@ -0,0 +1,11 @@
|
||||
console.log('fixChrome.js loaded');
|
||||
|
||||
const fs = require('fs')
|
||||
|
||||
const manifest = require('./dist/manifest.json')
|
||||
manifest.web_accessible_resources[0].resources.push('index.html')
|
||||
manifest.action.default_popup = 'popup.html'
|
||||
//写回文件
|
||||
fs.writeFileSync('./dist/manifest.json', JSON.stringify(manifest, null, 2))
|
||||
|
||||
console.log('fixChrome.js done');
|
Reference in New Issue
Block a user