diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-06-07 15:19:28 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-06-07 15:19:28 +0900 |
| commit | f79b15f610246bcdc20cb3db6879f2ac1b37809c (patch) | |
| tree | d656d908e2a4231117601bca8d4e24ec07b7b097 /src/web | |
| parent | v2008 (diff) | |
| download | misskey-f79b15f610246bcdc20cb3db6879f2ac1b37809c.tar.gz misskey-f79b15f610246bcdc20cb3db6879f2ac1b37809c.tar.bz2 misskey-f79b15f610246bcdc20cb3db6879f2ac1b37809c.zip | |
[Client] Fix bug
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/desktop/script.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/web/app/desktop/script.js b/src/web/app/desktop/script.js index 6beba44ffa..f9f0896ddd 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, |