mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Keep track of the initial hash parameters through multiple loads of the UI (close #7504)
This commit is contained in:
@@ -75,17 +75,16 @@ export function uiCommit(context) {
|
||||
if (!_changeset) {
|
||||
|
||||
// load in the URL hash values, if any
|
||||
var hashBehavior = context.ui().hash;
|
||||
if (hashBehavior.comment) {
|
||||
prefs('comment', hashBehavior.comment);
|
||||
if (context.initialHashParams.comment) {
|
||||
prefs('comment', context.initialHashParams.comment);
|
||||
prefs('commentDate', Date.now());
|
||||
}
|
||||
if (hashBehavior.source) {
|
||||
prefs('source', hashBehavior.source);
|
||||
if (context.initialHashParams.source) {
|
||||
prefs('source', context.initialHashParams.source);
|
||||
prefs('commentDate', Date.now());
|
||||
}
|
||||
if (hashBehavior.hashtags) {
|
||||
prefs('hashtags', hashBehavior.hashtags);
|
||||
if (context.initialHashParams.hashtags) {
|
||||
prefs('hashtags', context.initialHashParams.hashtags);
|
||||
}
|
||||
|
||||
var detected = utilDetect();
|
||||
|
||||
Reference in New Issue
Block a user