This commit is contained in:
syuilo
2020-09-06 14:33:51 +09:00
parent 0d99d8f8e5
commit 339a7d64d7
5 changed files with 6 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ import { applyTheme, lightTheme } from '@/scripts/theme';
import { isDeviceDarkmode } from '@/scripts/is-device-darkmode';
import { createPluginEnv } from '@/scripts/aiscript/api';
import { i18n, lang } from './i18n';
import { stream, sound } from '@/os';
import { stream, sound, isMobile } from '@/os';
console.info(`Misskey v${version}`);
@@ -39,10 +39,6 @@ window.addEventListener('resize', () => {
});
//#endregion
// Detect the user agent
const ua = navigator.userAgent.toLowerCase();
const isMobile = /mobile|iphone|ipad|android/.test(ua);
// Get the <head> element
const head = document.getElementsByTagName('head')[0];