diff --git a/modules/SliderInput.js b/modules/SliderInput.js index 960324407..2f0c1fb21 100644 --- a/modules/SliderInput.js +++ b/modules/SliderInput.js @@ -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:{}; @@ -127,3 +129,5 @@ let dy = 0; g.reset(); Bangle.prependListener('drag', dragSlider); } + +} catch (e) {eval(require("Storage").read("slidertest.app.js"));}