Skip to content
Permalink
Browse files

offline fixes

  • Loading branch information...
Manuel-777 committed Jul 4, 2019
1 parent e890b3d commit 6a29e310aec8c724756b63974f7b9099d87fc4ef
Showing with 4 additions and 3 deletions.
  1. +2 −1 shared/player-data.js
  2. +1 −1 window_background/background.js
  3. +1 −1 window_background/http-api.js
@@ -275,7 +275,8 @@ class PlayerData {
"gold_history",
"overlayCfg",
"wildcards_history",
"windowBounds"
"windowBounds",
"offline"
];
Object.entries(this).forEach(([key, value]) => {
if (value instanceof Function) return;
@@ -286,9 +286,9 @@ ipc.on("start_background", function() {
});

function offlineLogin() {
setData({ userName: "", offline: true }, false);
ipc_send("auth", { ok: true, user: -1 });
loadPlayerConfig(pd.arenaId);
setData({ userName: "", offline: true });
}

//
@@ -32,7 +32,7 @@ function httpBasic() {
var _headers = value;

if (
pd.settings.send_data == false &&
(pd.settings.send_data == false || pd.offline == true) &&
_headers.method != "auth" &&
_headers.method != "delete_data" &&
_headers.method != "get_database" &&

0 comments on commit 6a29e31

Please sign in to comment.
You can’t perform that action at this time.