Skip to content

Commit

Permalink
Actually set the dicts lol
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxal committed Nov 22, 2023
1 parent 280bc8f commit 8621c11
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ async function fetchOr(localPath, remotePath) {
let shortDict = null;
let longDict = null;

fetchOr("/ShortDictionary.txt", "https://vyxal.github.io/Vyxal/ShortDictionary.txt").then(
(text) => {
shortDict = text
Vyxal.setShortDict(shortDict)


})
fetchOr("/LongDictionary.txt", "https://vyxal.github.io/Vyxal/LongDictionary.txt").then(
(text) => {
longDict = text
Vyxal.setLongDict(longDict)
}
)
function resizeCodeBox(id) {
// Resize the code box with the given id
var element = document.getElementById(id);
Expand Down

0 comments on commit 8621c11

Please sign in to comment.