diff --git a/src/renderer/components/theme-settings/theme-settings.js b/src/renderer/components/theme-settings/theme-settings.js index a3a4c910..8098ae2f 100644 --- a/src/renderer/components/theme-settings/theme-settings.js +++ b/src/renderer/components/theme-settings/theme-settings.js @@ -109,6 +109,9 @@ export default Vue.extend({ const colorName = colorVal.replace(/([A-Z])/g, ' $1').trim() return this.$t(`Settings.Theme Settings.Main Color Theme.${colorName}`) }) + }, + usingElectron: function () { + return process.env.IS_ELECTRON } }, mounted: function () { @@ -139,9 +142,7 @@ export default Vue.extend({ this.updateDisableSmoothScrolling( this.disableSmoothScrollingToggleValue ).then(() => { - // FIXME: No electron safeguard const { ipcRenderer } = require('electron') - ipcRenderer.send('relaunchRequest') }) }, diff --git a/src/renderer/components/theme-settings/theme-settings.vue b/src/renderer/components/theme-settings/theme-settings.vue index 5abf8706..2904c1d9 100644 --- a/src/renderer/components/theme-settings/theme-settings.vue +++ b/src/renderer/components/theme-settings/theme-settings.vue @@ -14,6 +14,7 @@ @change="handleExpandSideBar" />