reordered functions to fix lint warnings

This commit is contained in:
Jack 2021-09-14 13:55:22 +01:00
parent 1e8f66b042
commit 119bb271f7

View file

@ -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") ?? "";
}