Accidently just broke all dialogs and modals LMFAO

This commit is contained in:
Soph :3 2024-11-25 17:32:52 +02:00
parent 09436dfdb7
commit 9eaeb5e90d
Signed by: sophie
GPG key ID: EDA5D222A0C270F2

View file

@ -1,4 +1,4 @@
// iife is only so "pv" doesn't go into globals // custom rules
(() => { (() => {
const pv = window.PvInternals; const pv = window.PvInternals;
@ -48,43 +48,43 @@
i; i;
switch (e) { switch (e) {
case pv.Modal.BAN: case pv.Modal.BAN:
i = new components_popups_pv_ban_pv_ban; i = new pv.components_popups_pv_ban_pv_ban;
break; break;
case pv.Modal.PROFILE: case pv.Modal.PROFILE:
i = new components_popups_pv_profile_pv_profile; i = new pv.components_popups_pv_profile_pv_profile;
break; break;
case pv.Modal.SETTINGS: case pv.Modal.SETTINGS:
i = new components_popups_pv_settings_pv_settings; i = new pv.components_popups_pv_settings_pv_settings;
break; break;
case pv.Modal.MESSAGE: case pv.Modal.MESSAGE:
i = new components_popups_pv_message_pv_message; i = new pv.components_popups_pv_message_pv_message;
break; break;
case pv.Modal.NEW_ROOM: case pv.Modal.NEW_ROOM:
i = new components_popups_pv_new_room_pv_new_room; i = new pv.components_popups_pv_new_room_pv_new_room;
break; break;
case pv.Modal.NEW_ROOM: case pv.Modal.NEW_ROOM:
i = new components_popups_pv_new_room_pv_new_room; i = new pv.components_popups_pv_new_room_pv_new_room;
break; break;
case pv.Modal.RULES: case pv.Modal.RULES:
i = new PvmeRulesModal; i = new PvmeRulesModal;
break; break;
case pv.Dialog.ROOMS: case pv.Dialog.ROOMS:
i = new components_popups_pv_rooms_pv_rooms; i = new pv.components_popups_pv_rooms_pv_rooms;
break; break;
case pv.Dialog.ACTIONS: case pv.Dialog.ACTIONS:
i = new components_popups_pv_actions_pv_actions; i = new pv.components_popups_pv_actions_pv_actions;
break; break;
case pv.Dialog.DEVICES: case pv.Dialog.DEVICES:
i = new components_popups_pv_devices_pv_devices; i = new pv.components_popups_pv_devices_pv_devices;
break; break;
case pv.Dialog.SOUNDS: case pv.Dialog.SOUNDS:
i = new components_popups_pv_sounds_pv_sounds; i = new pv.components_popups_pv_sounds_pv_sounds;
break; break;
case pv.Dialog.TRANSPOSE: case pv.Dialog.TRANSPOSE:
i = new components_popups_pv_transpose_pv_transpose; i = new pv.components_popups_pv_transpose_pv_transpose;
break; break;
case pv.Dialog.VELOCITY: case pv.Dialog.VELOCITY:
i = new components_popups_pv_velocity_pv_velocity; i = new pv.components_popups_pv_velocity_pv_velocity;
break; break;
default: default:
throw new Error(`Popup ${e} not found`) throw new Error(`Popup ${e} not found`)