Skip to content

Commit

Permalink
Auto update & Debounce 🪃
Browse files Browse the repository at this point in the history
  • Loading branch information
PatentLobster committed Jul 23, 2021
1 parent 57e4cc5 commit 205f5d9
Show file tree
Hide file tree
Showing 9 changed files with 10,911 additions and 10,234 deletions.
187 changes: 173 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stinker",
"version": "0.1.6",
"version": "0.1.7",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand All @@ -21,6 +21,7 @@
"autoprefixer": "^9",
"core-js": "^3.6.5",
"electron-store": "^8.0.0",
"electron-updater": "^4.3.9",
"execa": "^5.0.0",
"iniparser": "^1.0.5",
"lowdb": "^1.0.0",
Expand Down
5 changes: 4 additions & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const isDevelopment = process.env.NODE_ENV !== 'production'
require('@electron/remote/main').initialize()
const Store = require('electron-store');
Store.initRenderer()
import { autoUpdater } from "electron-updater";

// Scheme must be registered before the app is ready
protocol.registerSchemesAsPrivileged([
Expand Down Expand Up @@ -44,10 +45,12 @@ let win;
// Load the url of the dev server if in development mode
await win.loadURL(process.env.WEBPACK_DEV_SERVER_URL)
// if (!process.env.IS_TEST) win.webContents.openDevTools()
await autoUpdater.checkForUpdatesAndNotify();
} else {
await createProtocol('app')
// Load the index.html when not in development
await win.loadURL('app://./index.html')
await win.loadURL('app://./index.html');
await autoUpdater.checkForUpdatesAndNotify();
}
}

Expand Down
14 changes: 7 additions & 7 deletions src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ export default {
window.addEventListener("resize", () => {
this.resize();
});
this.$root.$on('resize-pane', () => {
this.resize();
});
this.on('resize-pane', () => {
this.resize();
});
// this.$root.$on('resize-pane', () => {
// this.resize();
// });
//
// this.on('resize-pane', () => {
// this.resize();
// });
this.$emit("editorDidMount", this.editor);
},
Expand Down
Loading

0 comments on commit 205f5d9

Please sign in to comment.