misc: main의 외부 초기화 코드를 내부로 이동
This commit is contained in:
+11
-3
@@ -4,9 +4,8 @@ import { unwrap } from '@util/unwrap';
|
||||
import { htmlReady } from '@util/htmlReady';
|
||||
import { initTooltip } from './initTooltip';
|
||||
import { exportWindow } from '@/util/exportWindow';
|
||||
|
||||
import '@/msg.ts';
|
||||
import '@/map.ts';
|
||||
import { reloadWorldMap } from '@/map';
|
||||
import { refreshMsg } from '@/msg';
|
||||
|
||||
exportWindow(jQuery, '$');
|
||||
|
||||
@@ -43,6 +42,15 @@ htmlReady(() => {
|
||||
activateFlip();
|
||||
initTooltip();
|
||||
|
||||
void reloadWorldMap({
|
||||
hrefTemplate: 'b_currentCity.php?citylist={0}',
|
||||
useCachedMap: true
|
||||
});
|
||||
|
||||
setInterval(function() {
|
||||
void refreshMsg();
|
||||
}, 5000);
|
||||
|
||||
const customCSS = localStorage.getItem('sam_customCSS');
|
||||
if (customCSS) {
|
||||
const styleEl = document.createElement('style');
|
||||
|
||||
Reference in New Issue
Block a user