Attach functions to the window option so that cordova does not break.
This commit is contained in:
parent
87473cd403
commit
0c267fa9fb
|
@ -11,14 +11,15 @@ const STATE = {
|
||||||
scale : 'ms',
|
scale : 'ms',
|
||||||
delayScale : 'ms',
|
delayScale : 'ms',
|
||||||
counter : 0
|
counter : 0
|
||||||
}
|
};
|
||||||
//functions
|
//functions
|
||||||
let frame;
|
window.frame = null;
|
||||||
let getState;
|
window.getState = null;
|
||||||
let setDir;
|
window.setDir = null;
|
||||||
let setExposure;
|
window.setExposure = null;
|
||||||
let setDelay;
|
window.setDelay = null;
|
||||||
let setCounter;
|
window.setCounter = null;
|
||||||
|
|
||||||
//ms
|
//ms
|
||||||
var shutter = function (exposure) {
|
var shutter = function (exposure) {
|
||||||
let fraction = BOLEX.expected / 1000;
|
let fraction = BOLEX.expected / 1000;
|
||||||
|
|
|
@ -162,11 +162,11 @@ web.useJson = function (res) {
|
||||||
return res.json();
|
return res.json();
|
||||||
}
|
}
|
||||||
web.init = function () {
|
web.init = function () {
|
||||||
frame = web.frame;
|
window.frame = web.frame;
|
||||||
getState = web.getState;
|
window.getState = web.getState;
|
||||||
setDir = web.setDir;
|
window.setDir = web.setDir;
|
||||||
setExposure = web.setExposure;
|
window.setExposure = web.setExposure;
|
||||||
setCounter = web.setCounter;
|
window.setCounter = web.setCounter;
|
||||||
|
|
||||||
web.getState();
|
getState();
|
||||||
};
|
};
|
Loading…
Reference in New Issue