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.remote.BrowserWindow.removeDevToolsExtension('React Developer Tools');
|
||||||
electron.webFrame.registerURLSchemeAsPrivileged('chrome-extension');
|
electron.webFrame.registerURLSchemeAsPrivileged('chrome-extension');
|
||||||
try {
|
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) {
|
if (res !== undefined) {
|
||||||
Toasts.success(res + ' Installed');
|
Toasts.success(res + ' Installed');
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -40,7 +40,7 @@ export default new class VueDevtoolsModule extends BuiltinModule {
|
||||||
electron.remote.BrowserWindow.removeDevToolsExtension('Vue.js devtools');
|
electron.remote.BrowserWindow.removeDevToolsExtension('Vue.js devtools');
|
||||||
electron.webFrame.registerURLSchemeAsPrivileged('chrome-extension');
|
electron.webFrame.registerURLSchemeAsPrivileged('chrome-extension');
|
||||||
try {
|
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) {
|
if (res !== undefined) {
|
||||||
Toasts.success(res + ' Installed');
|
Toasts.success(res + ' Installed');
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue