feat: Retain toggle label positions

This commit is contained in:
Sidharth Vinod
2024-11-13 21:07:57 +05:30
parent 09e705c3ae
commit f954dfab61
3 changed files with 22 additions and 14 deletions
+4 -2
View File
@@ -1,8 +1,9 @@
import { initURLSubscription, loadState, updateCodeStore } from './state';
import { plausible, initAnalytics } from './stats';
import { dev } from '$app/environment';
import { loadDataFromUrl } from './fileLoaders/loader';
import { initLoading } from './loading';
import { applyMigrations } from './migrations';
import { initURLSubscription, loadState, updateCodeStore } from './state';
import { initAnalytics, plausible } from './stats';
export const loadStateFromURL = (): void => {
loadState(window.location.hash.slice(1));
@@ -26,6 +27,7 @@ export const initHandler = async (): Promise<void> => {
export const isMac = navigator.platform.toUpperCase().includes('MAC');
export const cmdKey = isMac ? 'Cmd' : 'Ctrl';
export const MCBaseURL = dev ? 'http://localhost:5174' : 'https://mermaidchart.com';
let count = 0;
export const errorDebug = (limit = 1000) => {