Trying to inject a local js file to a remote site using the inAppBrowser like so
var basePath = window.location.href.replace('index.html', '');
var str = basePath + 'js/test.js';
iabRef.executeScript({file:str},function(){alert('hey');});
It only works if str is a remote url though, like http://www.example.com/test.js
Is it not possible to use a local file?