Skip to content

Commit

Permalink
Sync uncommitted code
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarel committed Jul 20, 2024
1 parent aeb6815 commit c7c83aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion play.pokemonshowdown.com/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ function toId() {
var settings = Dex.prefs('serversettings') || {};
if (Object.keys(settings).length) app.user.set('settings', settings);
// HTML5 history throws exceptions when running on file://
Backbone.history.start({pushState: !Config.testclient});
var useHistory = !Config.testclient && (location.pathname.slice(-5) !== '.html');
Backbone.history.start({pushState: useHistory});
app.ignore = app.loadIgnore();
});
}
Expand Down

0 comments on commit c7c83aa

Please sign in to comment.