From 388ee0d0500efbe6bbcfce91bc43cdc5fb29c708 Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Sat, 2 Feb 2019 23:23:50 -0800 Subject: website: lab: query string now only includes customized values --- docs/lab/index.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/lab') diff --git a/docs/lab/index.html b/docs/lab/index.html index d3bc254e4..a174aac8d 100644 --- a/docs/lab/index.html +++ b/docs/lab/index.html @@ -1628,6 +1628,7 @@ class BoundVar { this.isNumber = e.type == 'number' this.lastValue = this.getValue() this.parentVars = parentVars + this.defaultValue = this.lastValue } refreshValue(ev) { @@ -1747,6 +1748,10 @@ class Vars { getQueryString() { let pairs = [] this.values.forEach((v, k) => { + let vr = this.vars.get(k) + if (vr && vr.defaultValue == v) { + return // skip + } v = (v === true) ? 1 : (v === false || v === null) ? 0 : v pairs.push(encodeURIComponent(k) + '=' + encodeURIComponent(v)) }) -- cgit v1.2.3