dont throw typerror, this breaks cordova. just console log it