mirror of
https://github.com/rubickCenter/rubick
synced 2025-12-24 11:31:44 +08:00
bugfix: 修复windows下读取插件preload.js位置问题;
ref:搜索插件不区分大消息
This commit is contained in:
@@ -22,7 +22,7 @@ function getQueryVariable(variable) {
|
||||
if (location.href.indexOf('targetFile') > -1) {
|
||||
filePath = decodeURIComponent(getQueryVariable('targetFile'));
|
||||
} else {
|
||||
filePath = process.platform === 'win32' ? location.pathname.split(':')[1] : location.pathname.replace('file://', '');
|
||||
filePath = process.platform === 'win32' ? location.pathname.replace('/', '') : location.pathname.replace('file://', '');
|
||||
}
|
||||
const {ipcRenderer, nativeImage, clipboard, remote, shell} = require('electron');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user