From f79b15f610246bcdc20cb3db6879f2ac1b37809c Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 7 Jun 2017 15:19:28 +0900 Subject: [PATCH] [Client] Fix bug --- src/web/app/desktop/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/web/app/desktop/script.js b/src/web/app/desktop/script.js index 6beba44ff..f9f0896dd 100644 --- a/src/web/app/desktop/script.js +++ b/src/web/app/desktop/script.js @@ -41,6 +41,8 @@ init(async (me, stream) => { }); function registerNotifications(stream) { + if (stream == null) return; + stream.on('drive_file_created', file => { const n = new Notification('ファイルがアップロードされました', { body: file.name,