fix ts
This commit is contained in:
+1
-1
@@ -189,7 +189,7 @@ export async function reloadWorldMap(option: loadMapOption, drawTarget = '.world
|
||||
async function setMapBackground(obj: MapResult): Promise<MapResult> {
|
||||
function setTheme() {
|
||||
const oldTheme = $world_map.data('currentTheme');
|
||||
const newTheme = obj.theme;
|
||||
const newTheme = (obj as unknown as Record<string, string>).theme;
|
||||
if (oldTheme === newTheme) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user