You are reading a single comment by @PaddeK and its replies. Click here to read the full conversation.
  • Hmm first guess is you need to create an instance of your jstools "class" with new.

    var JsTools = require('jstools');
    
    var jt = new JsTools();
    
    setTimeout(function() {
        jt.setTimeByUrl('http://www.espruino.com', 1, console.log);
    }, 1000);
    

    Not tested... but should work :)

About

Avatar for PaddeK @PaddeK started