partey_workadventure/maps/tests/Variables/Cache/script.js

6 lines
222 B
JavaScript
Raw Normal View History

2021-11-24 13:00:27 +01:00
WA.onInit().then(async () => {
console.log('Trying to set variable "myvar". This should work, even if the cache was busted.');
await WA.state.saveVariable('myvar', {'foo': 'bar'});
console.log('SUCCESS!');
});