diff --git a/website/common/script/content/appearance/backgrounds.js b/website/common/script/content/appearance/backgrounds.js index 5ebbddf5a8..05d59e543c 100644 --- a/website/common/script/content/appearance/backgrounds.js +++ b/website/common/script/content/appearance/backgrounds.js @@ -624,8 +624,12 @@ forOwn(backgrounds, function prefillBackgroundSet (backgroundsInSet, set) { }); }); -module.exports = { - tree: backgrounds, - flat, -}; +export default backgrounds; +export function backgroundsTree () { + return backgrounds; +} + +export function backgroundsFlat () { + return flat; +} diff --git a/website/common/script/content/index.js b/website/common/script/content/index.js index 705ab6300d..01426b31c0 100644 --- a/website/common/script/content/index.js +++ b/website/common/script/content/index.js @@ -24,7 +24,7 @@ import { } from './quests'; import appearances from './appearance'; -import backgrounds from './appearance/backgrounds'; +import {backgroundsTree, backgroundsFlat} from './appearance/backgrounds'; import spells from './spells'; import subscriptionBlocks from './subscriptionBlocks'; import faq from './faq'; @@ -540,8 +540,8 @@ each(api.food, (food, key) => { api.appearances = appearances; -api.backgrounds = backgrounds.tree; -api.backgroundsFlat = backgrounds.flat; +api.backgrounds = backgroundsTree(); +api.backgroundsFlat = backgroundsFlat(); api.userDefaults = { habits: [