Still can't figure out why my own example doesn't work when I change some bits, but just a note that line 43 should read
if( typeof d.name !== "undefined" && d.name.indexOf( "Puck.js" ) === 0 ) {
as typeof returns a string and you're not coercing type.
typeof
@trezm started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Still can't figure out why my own example doesn't work when I change some bits, but just a note that line 43 should read
as
typeof
returns a string and you're not coercing type.