mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 23:14:47 +02:00
@@ -37,7 +37,9 @@ export function behaviorHash(context) {
|
||||
var center = map.center(),
|
||||
zoom = map.zoom(),
|
||||
precision = Math.max(0, Math.ceil(Math.log(zoom) / Math.LN2)),
|
||||
q = _.omit(utilStringQs(window.location.hash.substring(1)), ['comment', 'walkthrough']),
|
||||
q = _.omit(utilStringQs(window.location.hash.substring(1)),
|
||||
['comment', 'hashtags', 'walkthrough']
|
||||
),
|
||||
newParams = {};
|
||||
|
||||
delete q.id;
|
||||
@@ -99,6 +101,10 @@ export function behaviorHash(context) {
|
||||
context.storage('commentDate', Date.now());
|
||||
}
|
||||
|
||||
if (q.hashtags) {
|
||||
context.storage('hashtags', q.hashtags);
|
||||
}
|
||||
|
||||
if (q.walkthrough === 'true') {
|
||||
hash.startWalkthrough = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user