handle absent trailing slashes in config for checkup page

pull/1/head
ansuz 4 years ago
parent bced36b2f8
commit 163b870f92

@ -43,7 +43,11 @@ define([
}, _alert('Sandbox configuration: httpUnsafeOrigin !== httpSafeOrigin'));
assert(function (cb) {
cb((window.location.origin + '/') === ApiConfig.httpUnsafeOrigin);
var origin = window.location.origin;
return void cb([
origin,
origin + '/'
].indexOf(ApiConfig.httpUnsafeOrigin) !== -1);
}, _alert('Sandbox configuration: loading via httpUnsafeOrigin'));

Loading…
Cancel
Save