From 65f3fa1e0781264a74fe1bd6296528cc76a1eee4 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 28 Mar 2023 20:57:44 +0800 Subject: [PATCH] style: hide not support notify in mobile --- client/web/plugins/com.msgbyte.notify/src/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/web/plugins/com.msgbyte.notify/src/index.tsx b/client/web/plugins/com.msgbyte.notify/src/index.tsx index 6ac91997..e89943e1 100644 --- a/client/web/plugins/com.msgbyte.notify/src/index.tsx +++ b/client/web/plugins/com.msgbyte.notify/src/index.tsx @@ -6,7 +6,10 @@ import { PLUGIN_SYSTEM_SETTINGS_DISABLED_SOUND } from './const'; if ('Notification' in window) { initNotify(); } else { - showToasts(Translate.nosupport, 'warning'); + if ((window as Window).innerWidth >= 768) { + // if not mobile + showToasts(Translate.nosupport, 'warning'); + } console.warn(Translate.nosupport); }