1
0
forked from mirror/misskey
tamaina 2021-03-29 20:38:32 +09:00
parent 10d27e5fd3
commit b949dec9f4

View File

@ -75,11 +75,6 @@ export default defineComponent({
case 'post': case 'post':
return post(data.options); return post(data.options);
case 'push': case 'push':
if (data.url.startsWith('/my/messaging')) {
if (router.currentRoute.value.path === data.url) return;
if (ColdDeviceStorage.get('chatOpenBehavior') === 'window') return pageWindow(data.url);
if (ColdDeviceStorage.get('chatOpenBehavior') === 'popout') return popout(data.url);
}
if (router.currentRoute.value.path === data.url) { if (router.currentRoute.value.path === data.url) {
return window.scroll({ top: 0, behavior: 'smooth' }); return window.scroll({ top: 0, behavior: 'smooth' });
} }