mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 11:53:11 +02:00
[Client] Fix bug
This commit is contained in:
parent
05fcc84c22
commit
f79b15f610
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,8 @@ init(async (me, stream) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
function registerNotifications(stream) {
|
function registerNotifications(stream) {
|
||||||
|
if (stream == null) return;
|
||||||
|
|
||||||
stream.on('drive_file_created', file => {
|
stream.on('drive_file_created', file => {
|
||||||
const n = new Notification('ファイルがアップロードされました', {
|
const n = new Notification('ファイルがアップロードされました', {
|
||||||
body: file.name,
|
body: file.name,
|
||||||
|
|
Loading…
Reference in a new issue