This commit is contained in:
tamaina 2021-01-21 21:41:58 +09:00
parent ab3ae3c2b2
commit e08cfff613
3 changed files with 4 additions and 6 deletions

View File

@ -211,8 +211,7 @@ fetchInstance().then(() => {
if (subscription) subscription.unsubscribe(); if (subscription) subscription.unsubscribe();
}); });
}); });
}
};
}); });
stream.init($i); stream.init($i);

View File

@ -3,9 +3,9 @@ import getUserName from '../../misc/get-user-name';
export default async function(type, data, i18n): Promise<[string, NotificationOptions] | null> { export default async function(type, data, i18n): Promise<[string, NotificationOptions] | null> {
if (!i18n) { if (!i18n) {
console.log('no i18n') console.log('no i18n');
return null return null;
}; }
switch (type) { switch (type) {
case 'driveFileCreated': // TODO (Server Side) case 'driveFileCreated': // TODO (Server Side)

View File

@ -83,7 +83,6 @@ self.addEventListener('message', ev => {
if (otype === 'object') { if (otype === 'object') {
if (ev.data.msg === 'initialize') { if (ev.data.msg === 'initialize') {
console.log('initialize')
i = ev.data.$i; i = ev.data.$i;
i18n = new I18n(ev.data.locale); i18n = new I18n(ev.data.locale);
} }