12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- module.exports = {
- id: 'browser',
- cordovaVersion: '4.2.0',
- bootstrap: function() {
- var modulemapper = require('cordova/modulemapper');
- var channel = require('cordova/channel');
- modulemapper.clobbers('cordova/exec/proxy', 'cordova.commandProxy');
- channel.onNativeReady.fire();
- document.addEventListener("visibilitychange", function(){
- if(document.hidden) {
- channel.onPause.fire();
- }
- else {
- channel.onResume.fire();
- }
- });
-
- }
- };
|