Attempt to fix fetch link

This commit is contained in:
Misode
2020-05-29 03:44:12 +02:00
parent a994464730
commit 60e5fe0ce9

View File

@@ -3,7 +3,7 @@ import { TreeView } from '../view/TreeView'
import { SourceView } from '../view/SourceView'
import { ConditionSchema } from '../minecraft/schemas/Condition'
import { SandboxSchema } from './Sandbox'
import { LOCALES, locale } from '../Registries'
import { LOCALES } from '../Registries'
const predicateModel = new DataModel(ConditionSchema)
const sandboxModel = new DataModel(SandboxSchema)
@@ -30,7 +30,7 @@ document.getElementById('header')?.append(modelSelector)
new TreeView(model, document!.getElementById('view')!)
new SourceView(model, document!.getElementById('source')!)
fetch('../build/locales/en.json')
fetch('./build/locales/en.json')
.then(r => r.json())
.then(l => {
LOCALES.register('en', l)