DEMO stuff and symbol renames
This commit is contained in:
1 parent
51e5a98a92
commit
45acdd3400
15 files changed
+193
-69
No files matched your search
@@ -1,12 +1,12 @@
|
||||
import { PREF } from "./const";
|
||||
|
||||
export function setPlayerAnswers(answers: string[]) {
|
||||
localStorage.setItem(PREF.worthyWords, JSON.stringify(answers));
|
||||
localStorage.setItem(PREF.worthy_words, JSON.stringify(answers));
|
||||
window.dispatchEvent(new Event('storage'));
|
||||
}
|
||||
|
||||
export function getAnswers(): string[] {
|
||||
const answers = localStorage.getItem(PREF.worthyWords);
|
||||
const answers = localStorage.getItem(PREF.worthy_words);
|
||||
if (answers === null) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user