diff --git a/src/store/modules/socketIOModule.js b/src/store/modules/socketIOModule.js index 0862b0b..4be7716 100644 --- a/src/store/modules/socketIOModule.js +++ b/src/store/modules/socketIOModule.js @@ -3,7 +3,7 @@ import {bus} from '../../main' import {router} from './../../router' import Vue from 'vue'; import DesktopNotification from '@/utils/ElectronJS/DesktopNotification' -import isElectron from '@/utils/ElectronJS/DesktopNotification' +import isElectron from '@/utils/ElectronJS/isElectron' import { isMobile } from '@/utils/Mobile'; const state = { @@ -179,16 +179,11 @@ const actions = { const disableDesktopNotification = context.rootGetters['settingsModule/settings'].notification.disableDesktopNotification; - - // if (disableDesktopNotification === true) return - - // if (!isElectron || disableDesktopNotification === undefined) return; if (isMobile()) return; if (isElectron && disableDesktopNotification === undefined) return sendNotification(); if (disableDesktopNotification !== undefined && disableDesktopNotification === false) return sendNotification() - function sendNotification() { if (channel && channel.server_id) { const server = context.getters['servers/servers'][channel.server_id]