Added appdata debug uri
This commit is contained in:
parent
dc7592748f
commit
ad58ea969a
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
import {app, Menu, nativeImage, Tray, ipcMain, clipboard} from 'electron';
|
||||
import {app, Menu, nativeImage, Tray, ipcMain, clipboard, shell} from 'electron';
|
||||
import {readFileSync} from "fs";
|
||||
import * as path from 'path';
|
||||
import * as log from 'electron-log';
|
||||
|
@ -172,6 +172,8 @@ export class AppEvents {
|
|||
let url = arg.split('//')[1]
|
||||
console.warn(`[LinkHandler] Attempting to load url: ${url}`);
|
||||
utils.getWindow().webContents.send('play', 'url', url)
|
||||
} else if (arg.includes('/debug/appdata')) {
|
||||
shell.openPath(app.getPath('userData'))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue