If no features are disabled remove the querystring parameter

This commit is contained in:
Bryan Housel
2017-10-22 22:42:35 -06:00
parent a670c73808
commit dbf85dae43

View File

@@ -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));
}