Overall Update and Streamlined #11

Closed
naturallaw777 wants to merge 1034 commits from staging-dev into stable
pull from: staging-dev
Showing only changes of commit d973fae4db - Show all commits
@@ -384,7 +384,10 @@ function handleFeatureToggle(feat, newEnabled) {
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ ports: ports }),
})
.then(function(r) { return r.json(); })
.then(function(r) {
if (!r.ok) throw new Error("Port status request failed: " + r.status);
return r.json();
})
.then(function(data) {
var portStatuses = {};
(data.ports || []).forEach(function(p) {