This repository was archived by the owner on Nov 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,8 +163,6 @@ if (process.env.NODE_ENV !== 'production') {
163163 * Adjust rendererConfig for production settings
164164 */
165165if ( process . env . NODE_ENV === 'production' ) {
166- rendererConfig . devtool = ''
167-
168166 rendererConfig . plugins . push (
169167 // new BabiliWebpackPlugin(),
170168 new CopyWebpackPlugin ( [ {
Original file line number Diff line number Diff line change 11{
22 "name" : " discord-4sucres-connector" ,
3- "version" : " 0.0.1 " ,
3+ "version" : " 0.0.3 " ,
44 "author" :
" Simon MGK <[email protected] >" ,
55 "description" : " Send your Discord guilds emojis on 4sucres" ,
66 "license" : null ,
Original file line number Diff line number Diff line change @@ -2,6 +2,15 @@ import Vue from 'vue'
22import axios from 'axios'
33import App from './App'
44import { version } from '../../package.json' ;
5+ import { remote } from 'electron'
6+
7+ remote . globalShortcut . register ( 'CommandOrControl+Shift+I' , ( ) => {
8+ remote . BrowserWindow . getFocusedWindow ( ) . webContents . openDevTools ( )
9+ } )
10+
11+ window . addEventListener ( 'beforeunload' , ( ) => {
12+ remote . globalShortcut . unregisterAll ( )
13+ } )
514
615if ( ! process . env . IS_WEB ) Vue . use ( require ( 'vue-electron' ) )
716Vue . http = Vue . prototype . $http = axios
You can’t perform that action at this time.
0 commit comments