diff options
Diffstat (limited to 'desktop/main.js')
-rw-r--r-- | desktop/main.js | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/desktop/main.js b/desktop/main.js index 02f153d..617df9e 100644 --- a/desktop/main.js +++ b/desktop/main.js @@ -338,40 +338,6 @@ const createWindow = () => { }); } -const studioMode = () => { - if (global.studioWindow) return; - - global.studioWindow = new BrowserWindow({ - width: require('electron').screen.getPrimaryDisplay().workAreaSize.width, - minWidth: 1280, - height: require('electron').screen.getPrimaryDisplay().workAreaSize.height, - minHeight: 720, - autoHideMenuBar: true, - title: "Mist Studio", - backgroundColor: "#111111", - webPreferences: { - nodeIntegration: true, - contextIsolation: false, - scrollBounce: true, - enableWebSQL: false - } - }); - - updateMenu(studioWindow); - - studioWindow.webContents.setUserAgent(studioWindow.webContents.getUserAgent() + " MistNative/" + process.platform); - studioWindow.loadURL("https://mist.equestria.horse/app/studio.php"); - - studioWindow.webContents.setWindowOpenHandler((details) => { - shell.openExternal(details.url); - return { action: "deny" }; - }); - - studioWindow.on('close', () => { - global.studioWindow = null; - }); -} - ipcMain.handle('auth', () => { shell.openExternal("https://mist.equestria.horse/oauth/native/"); }); @@ -380,11 +346,6 @@ ipcMain.handle('about', () => { app.showAboutPanel(); }); -ipcMain.handle('studio', () => { - studioMode(); - mainWindow.close(); -}); - ipcMain.handle('userInfo', (e, userInfo) => { global.userInfo = JSON.parse(userInfo); updateMenu(mainWindow); |