Skip to content

Commit

Permalink
Fix server info type coercion (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
MegrezZhu authored Nov 14, 2024
1 parent 74e9a34 commit a52ce62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ Index.initializeAll = function () {
Server.callAPI("/api/info", "GET", null, "Error getting basic server info!",
(data) => {
Index.serverVersion = data.version;
Index.debugMode = data.debug_mode === "1";
Index.isProgressLocal = data.server_tracks_progress !== "1";
Index.debugMode = !!data.debug_mode;
Index.isProgressLocal = !data.server_tracks_progress;
Index.pageSize = data.archives_per_page;

// Check version if not in debug mode
Expand Down

0 comments on commit a52ce62

Please sign in to comment.