runtime.Store => wails.Store

This commit is contained in:
Travis McLane
2020-09-04 13:02:11 -05:00
parent f851b89350
commit ddcaf58a90

View File

@@ -4,7 +4,7 @@ const runtime = require('@wailsapp/runtime');
// Main entry point
function start() {
var mystore = runtime.Store.New('Counter');
var mystore = wails.Store.New('Counter');
// Ensure the default app div is 100% wide/high
var app = document.getElementById('app');
@@ -39,9 +39,9 @@ function start() {
mystore.subscribe( (state) => {
document.getElementById('counter').innerText = state;
});
mystore.set(0);
};
// We provide our entrypoint as a callback for runtime.Init
runtime.Init(start);
runtime.Init(start);