Skip to content

Commit a9c543b

Browse files
committed
docs(bom): fix location
1 parent 51a586c commit a9c543b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/bom/location.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ params.toString() // "foo=3"
481481
```javascript
482482
// URL: https://example.com?version=1.0
483483
var params = new URLSearchParams(location.search.slice(1));
484-
params.set('version', 2.0);
484+
params.set('version', '2.0');
485485

486486
window.history.replaceState({}, '', location.pathname + `?` + params);
487487
// URL: https://example.com?version=2.0

0 commit comments

Comments
 (0)