Skip to content

Commit f1f1088

Browse files
committed
fix(generator): typings not added correctly
1 parent d466430 commit f1f1088

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ module.exports = (api, options = {}) => {
4545
'process.env.WEBPACK_DEV_SERVER_URL as string)'
4646
)
4747
background = background.replace(
48-
/let mainWindow\s*?$/m,
49-
'let mainWindow: any'
48+
/let win\s*?$/m,
49+
'let win: any'
5050
)
5151
fs.writeFileSync(api.resolve('./src/background.ts'), background)
5252
if (api.hasPlugin('router')) {

0 commit comments

Comments
 (0)