Skip to content

Commit

Permalink
SliderInput: load test app on load from Web IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Aug 26, 2023
1 parent e175412 commit a69362b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/SliderInput.js
Original file line number Diff line number Diff line change
@@ -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) {
// Configuration for the indicator:
conf = conf?conf:{};
Expand Down Expand Up @@ -127,3 +129,5 @@ let dy = 0;
g.reset();
Bangle.prependListener('drag', dragSlider);
}

} catch (e) {eval(require("Storage").read("slidertest.app.js"));}

0 comments on commit a69362b

Please sign in to comment.