Compare commits

...

1 Commits

Author SHA1 Message Date
Travis McLane
ddcaf58a90 runtime.Store => wails.Store 2020-09-04 13:02:11 -05:00

View File

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