SliderInput: load test app on load from Web IDE

master
thyttan 2023-08-26 20:18:36 +02:00
parent afa7fd91ec
commit c86fd3458b
1 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,5 @@
try { // for making it possiblie to run the test app in the following catch statement. It would complaing on `exported` not being defined.
exports.interface = function(cb, conf) { exports.interface = function(cb, conf) {
// Configuration for the indicator: // Configuration for the indicator:
conf = conf?conf:{}; conf = conf?conf:{};
@ -127,3 +129,5 @@ let dy = 0;
g.reset(); g.reset();
Bangle.prependListener('drag', dragSlider); Bangle.prependListener('drag', dragSlider);
} }
} catch (e) {eval(require("Storage").read("slidertest.app.js"));}