Skip to content

Commit a1e937b

Browse files
committed
Status code 0 check :/
1 parent 51d44d0 commit a1e937b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package/dist/ConfigurationProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
xobj.open('GET', 'configuration.json', true); // Replace 'my_data' with the path to your file
9494
xobj.onreadystatechange = function () {
9595
if (xobj.readyState === 4) {
96-
if ((xobj.status === 200 || xobj.status === 200) && xobj.responseText) {
96+
if ((xobj.status === 200 || xobj.status === 0) && xobj.responseText) {
9797
window.configuration = JSON.parse(xobj.responseText);
9898
}
9999
callback();

package/src/ConfigurationProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function loadConfigurationJSON(callback) {
4444
xobj.open('GET', 'configuration.json', true); // Replace 'my_data' with the path to your file
4545
xobj.onreadystatechange = function () {
4646
if (xobj.readyState === 4) {
47-
if ((xobj.status === 200 || xobj.status === 200) && xobj.responseText) {
47+
if ((xobj.status === 200 || xobj.status === 0) && xobj.responseText) {
4848
(<any>window).configuration = JSON.parse(xobj.responseText);
4949
}
5050
callback();

0 commit comments

Comments
 (0)