diff --git a/app/index.js b/app/index.js index 09559aa..f833ac8 100644 --- a/app/index.js +++ b/app/index.js @@ -63,8 +63,9 @@ ipcRenderer.on('window-blur', () => { ipcRenderer.on('GlobalShortcuts', (event, shortcut) => { switch (shortcut) { case 'CmdOrCtrl+C': - const selectedImageContainer = imagesWrapper.querySelector('.is-selected') - clipboard.writeText(selectedImageContainer.getElementsByTagName('img')[0].src) + clipboard.writeText( + imagesWrapper.querySelector('.is-selected').getElementsByTagName('img')[0].src + ) break case 'CmdOrCtrl+F': searchInput.focus() diff --git a/package.json b/package.json index 00cecb9..255565a 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "devDependencies": { "electron": "^4.0.0", "electron-packager": "^13.0.0", - "standard": "^12.0.1" + "standard": "^14.3.1" }, "prettier": { "semi": false,