js: Only add requests to the history if they're going to #main

This commit is contained in:
Johannes Meyer 2020-07-03 15:53:48 +02:00
parent f8ef32fc0e
commit 79a6feeb4b

View File

@ -292,7 +292,7 @@
req.scripted = false;
req.method = method;
req.action = action;
req.addToHistory = true;
req.addToHistory = $target.parent().is('#main');
req.progressTimer = progressTimer;
if (url.match(/#/)) {