misc: main의 외부 초기화 코드를 내부로 이동

This commit is contained in:
2021-12-11 11:52:02 +09:00
parent 08488cae4a
commit dd2afb7609
2 changed files with 14 additions and 18 deletions
+11 -3
View File
@@ -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');