You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi @icaro56 , @fernandojunior
I was able to convert this plugin into a require JS module
I am using backbone JS with requireJS.
I bootstrapped my app when I received deviceReady event and inside this event handler i assigned runningInCordova variable to the window object.
for example:
require(["baseLib"], function(argument) {
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.runningInCordova = true;
//rest of the app Initialization code goes here
}
});
Once this is done, you may go ahead and directly use this requireJS module from this fiddle.
A try twice and no success.
The text was updated successfully, but these errors were encountered: