wip
This commit is contained in:
@@ -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];
|
||||
|
||||
|
Reference in New Issue
Block a user