Don't check for stronger hash if we have an edit hash

This commit is contained in:
yflory
2018-01-26 15:44:34 +01:00
parent 462c229b17
commit 36550b781f
2 changed files with 7 additions and 0 deletions

View File

@@ -300,6 +300,8 @@ Version 1
var rHref = href || getRelativeHref(window.location.href);
var parsed = parsePadUrl(rHref);
if (!parsed.hash) { return false; }
// We can't have a stronger hash if we're already in edit mode
if (parsed.hashData && parsed.hashData.mode === 'edit') { return; }
var stronger;
Object.keys(recents).some(function (id) {
var pad = recents[id];