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();
});
});
};
}
});
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> {
if (!i18n) {
console.log('no i18n')
return null
};
console.log('no i18n');
return null;
}
switch (type) {
case 'driveFileCreated': // TODO (Server Side)

View file

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