a couple of patches for windows, edge, and debugging mode

This commit is contained in:
Stewart Allen 2020-03-20 12:03:20 -04:00
commit 6da61b973b
2 changed files with 11 additions and 4 deletions

View file

@ -372,7 +372,7 @@ self.kiri.copyright = exports.COPYRIGHT;
function parseOpt(ov) {
var opt = {}, kv, kva;
// handle kiri legacy and proper url encoding better
ov.split(',').map(v => v.split('&')).flat(1).forEach(function(el) {
ov.replace(/&/g,',').split(',').forEach(function(el) {
kv = decodeURIComponent(el).split(':');
if (kv.length === 2) {
kva = opt[kv[0]] = opt[kv[0]] || [];