diff --git a/.travis.yml b/.travis.yml
index 9d70f7e5..623c09fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,7 +6,7 @@ language: node_js
matrix:
include:
- os: linux
- node_js: 8
+ node_js: 10.11.0
env: CC=clang CXX=clang++ npm_config_clang=1
compiler: clang
diff --git a/app/auto-updater-linux.js b/app/auto-updater-linux.js
index 31dd23d8..1257c206 100644
--- a/app/auto-updater-linux.js
+++ b/app/auto-updater-linux.js
@@ -1,6 +1,6 @@
'use strict';
-const fetch = require('electron-fetch');
+const fetch = require('electron-fetch').default;
const {EventEmitter} = require('events');
class AutoUpdater extends EventEmitter {
diff --git a/app/commands.js b/app/commands.js
index 498573cb..63f20dd8 100644
--- a/app/commands.js
+++ b/app/commands.js
@@ -53,6 +53,16 @@ const commands = {
webContents.openDevTools({mode: 'detach'});
}
},
+ 'editor:copy': focusedWindow => {
+ // HACK: Had to add this because the "editor:copy" role is not firing with
+ // ctrl+shift+c after upgrading to electron 4
+ // Electron issue: https://github.com/electron/electron#16088
+ if (!focusedWindow) {
+ return;
+ }
+ const webContents = focusedWindow.webContents;
+ webContents.copy();
+ },
'zoom:reset': focusedWindow => {
focusedWindow && focusedWindow.rpc.emit('reset fontSize req');
},
diff --git a/app/index.html b/app/index.html
index 04a2a4fa..3d16602e 100644
--- a/app/index.html
+++ b/app/index.html
@@ -5,6 +5,7 @@
+