From 251a3829b76bdc4360713cda907ccf26e84da698 Mon Sep 17 00:00:00 2001 From: supertiger1234 Date: Wed, 16 Oct 2019 11:01:27 +0100 Subject: [PATCH] fixed more user error --- src/store/modules/socketIOModule.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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]