mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-25 15:38:56 +00:00
Merge pull request #892 from allouis/master
Fixing #890 - decodeURIComponent on search string.
This commit is contained in:
commit
da08204a45
@ -73,7 +73,8 @@ panels.restore = function () {
|
||||
// the panel name of 'output' and the shortcut 'live'.
|
||||
// it also strips out prop=value& to avoid bashing the
|
||||
// panel name
|
||||
toopen = (search || hash).replace(/\b([^&=]*)=([^&=]*)/g, '').replace(/&/g, '').split(',');
|
||||
|
||||
toopen = decodeURIComponent(search || hash).replace(/\b([^&=]*)=([^&=]*)/g, '').replace(/&/g, '').split(',');
|
||||
|
||||
if (toopen.indexOf('output') !== -1) {
|
||||
toopen.push('live');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user