Use path.join
This commit is contained in:
parent
9d22293927
commit
b861280548
|
@ -40,7 +40,7 @@ export default new class ReactDevtoolsModule extends BuiltinModule {
|
|||
electron.remote.BrowserWindow.removeDevToolsExtension('React Developer Tools');
|
||||
electron.webFrame.registerURLSchemeAsPrivileged('chrome-extension');
|
||||
try {
|
||||
const res = electron.remote.BrowserWindow.addDevToolsExtension(path.resolve(Globals.getPath('ext'), 'extensions', 'rdt'));
|
||||
const res = electron.remote.BrowserWindow.addDevToolsExtension(path.join(Globals.getPath('ext'), 'extensions', 'rdt'));
|
||||
if (res !== undefined) {
|
||||
Toasts.success(res + ' Installed');
|
||||
return;
|
||||
|
|
|
@ -40,7 +40,7 @@ export default new class VueDevtoolsModule extends BuiltinModule {
|
|||
electron.remote.BrowserWindow.removeDevToolsExtension('Vue.js devtools');
|
||||
electron.webFrame.registerURLSchemeAsPrivileged('chrome-extension');
|
||||
try {
|
||||
const res = electron.remote.BrowserWindow.addDevToolsExtension(path.resolve(Globals.getPath('ext'), 'extensions', 'vdt'));
|
||||
const res = electron.remote.BrowserWindow.addDevToolsExtension(path.join(Globals.getPath('ext'), 'extensions', 'vdt'));
|
||||
if (res !== undefined) {
|
||||
Toasts.success(res + ' Installed');
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue