Skip to content

Commit

Permalink
fix: set palette name to store if no palette found
Browse files Browse the repository at this point in the history
  • Loading branch information
istudyatuni committed May 14, 2022
1 parent 3da3056 commit a9051fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit a9051fa

Please sign in to comment.