mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
If no features are disabled remove the querystring parameter
This commit is contained in:
@@ -70,7 +70,12 @@ export function rendererFeatures(context) {
|
||||
function update() {
|
||||
if (!window.mocha) {
|
||||
var q = utilStringQs(window.location.hash.substring(1));
|
||||
q.disable_features = features.disabled().join(',');
|
||||
var disabled = features.disabled();
|
||||
if (disabled.length) {
|
||||
q.disable_features = features.disabled().join(',');
|
||||
} else {
|
||||
delete q.disable_features;
|
||||
}
|
||||
window.location.replace('#' + utilQsString(q, true));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user