From a9051fad6588aa681f83197114f2d70adac8ef80 Mon Sep 17 00:00:00 2001 From: Ilia Date: Sat, 14 May 2022 13:04:15 +0300 Subject: [PATCH] fix: set palette name to store if no palette found --- src/utils/maps.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/maps.js b/src/utils/maps.js index 9952fc6..d06686e 100644 --- a/src/utils/maps.js +++ b/src/utils/maps.js @@ -2,6 +2,7 @@ // mirror: https://github.com/jhol/fractint/blob/master/maps import { default_map } from 'src/config' +import { settings } from 'src/stores/settings' export const MAPS = { altern: { name: 'altern' }, @@ -35,6 +36,7 @@ export const MAPS = { export async function load_palette(name) { if (MAPS[name] === undefined) { name = default_map + settings.set('palette', name) } const response = await fetch( import.meta.env.BASE_URL + 'maps/' + name + '.map'