mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-10 17:34:24 +08:00
reordered functions to fix lint warnings
This commit is contained in:
parent
1e8f66b042
commit
119bb271f7
1 changed files with 8 additions and 8 deletions
|
|
@ -1,6 +1,14 @@
|
|||
import * as Notifications from "./notifications";
|
||||
import * as VersionPopup from "./version-popup";
|
||||
|
||||
function setMemory(v) {
|
||||
window.localStorage.setItem("lastSeenVersion", v);
|
||||
}
|
||||
|
||||
function getMemory() {
|
||||
return window.localStorage.getItem("lastSeenVersion") ?? "";
|
||||
}
|
||||
|
||||
export async function show(version) {
|
||||
const memory = await getMemory();
|
||||
if (memory === "") {
|
||||
|
|
@ -20,11 +28,3 @@ export async function show(version) {
|
|||
);
|
||||
setMemory(version);
|
||||
}
|
||||
|
||||
function setMemory(v) {
|
||||
window.localStorage.setItem("lastSeenVersion", v);
|
||||
}
|
||||
|
||||
function getMemory() {
|
||||
return window.localStorage.getItem("lastSeenVersion") ?? "";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue