exported db snapshot globally for debugging in the browser

This commit is contained in:
typer 2020-11-12 23:38:30 -08:00
parent b879a5967d
commit 1679e69123
3 changed files with 7 additions and 0 deletions

View file

@ -101,6 +101,7 @@ const globalSrc = [
"./src/js/settings.js",
"./src/js/account.js",
"./src/js/script.js",
"./src/js/exports.js",
];
//concatenates and lints legacy js files and writes the output to dist/gen/index.js

4
src/js/exports.js Normal file
View file

@ -0,0 +1,4 @@
//this file should be concatenated with the legacy js files
//these exports are just for debugging in the browser
global.snapshot = db_getSnapshot;

View file

@ -1,3 +1,5 @@
//this file should be concatenated at the top of the legacy js files
import {
db_getSnapshot,
db_setSnapshot,