Provide options for fetch to get state.

This commit is contained in:
mmcwilliams 2017-11-21 17:15:13 -05:00
parent 134afb8e05
commit ae9fd34445
1 changed files with 6 additions and 1 deletions

View File

@ -441,7 +441,10 @@
console.log(`setDir to ${res.dir}`);
};
web.getState = function () {
fetch('/status')
const opts = {
method : 'GET'
}
fetch('/status', opts)
.then(res => {
let r = res.json();
console.dir(r);
@ -454,6 +457,8 @@
});
};
web.getStateSuccess = function (res) {
console.dir(res)
return;
var exposure;
var scale;
if (res.frame.dir !== true) {