mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update room.vue
This commit is contained in:
parent
5c28ee0536
commit
bbff43e9e6
1 changed files with 2 additions and 1 deletions
|
|
@ -172,6 +172,7 @@ import { RoomController } from '@/world/room/controller.js';
|
|||
import { cm, getHex, getRgb } from '@/world/utility.js';
|
||||
import { deepClone } from '@/utility/clone.js';
|
||||
import { GRAPHICS_QUALITY_HIGH, GRAPHICS_QUALITY_LOW, GRAPHICS_QUALITY_MEDIUM } from '@/world/room/engine.js';
|
||||
import { deviceKind } from '@/utility/device-kind.js';
|
||||
|
||||
const canvas = useTemplateRef('canvas');
|
||||
|
||||
|
|
@ -189,7 +190,7 @@ function resize() {
|
|||
const isZenMode = ref(false);
|
||||
const isRoomSettingsOpen = ref(false);
|
||||
const isChanged = ref(false);
|
||||
const graphicsQuality = ref<number>(0);
|
||||
const graphicsQuality = ref<number>(deviceKind === 'smartphone' ? GRAPHICS_QUALITY_LOW : GRAPHICS_QUALITY_MEDIUM);
|
||||
|
||||
const data = localStorage.getItem('roomData') != null ? JSON.parse(localStorage.getItem('roomData')!) : {
|
||||
heya: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue