Skip to content

Commit d24001c

Browse files
committed
appDirectory -> pageDirectory
1 parent 3b4a365 commit d24001c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

renderer-process/system/protocol-handler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const path = require('path')
55
const protocolHandlerBtn = document.getElementById('protocol-handler')
66

77
protocolHandlerBtn.addEventListener('click', function () {
8-
const appDirectory = __dirname.replace('app.asar', 'app.asar.unpacked')
9-
const pagePath = path.join('file://', appDirectory, '../../sections/system/protocol-link.html')
8+
const pageDirectory = __dirname.replace('app.asar', 'app.asar.unpacked')
9+
const pagePath = path.join('file://', pageDirectory, '../../sections/system/protocol-link.html')
1010
shell.openExternal(pagePath)
1111
})

0 commit comments

Comments
 (0)