added disableToType option
This commit is contained in:
Barış Soner Uşaklı
2019-01-30 10:33:15 -05:00
parent aa76d496f2
commit c7abf07a3d
2 changed files with 4 additions and 2 deletions

View File

@@ -649,7 +649,7 @@
params.forEach(function (param) {
var val = param.split('=');
var key = decodeURI(val[0]);
var value = options.skipToType[key] ? decodeURI(val[1]) : utils.toType(decodeURI(val[1]));
var value = options.disableToType || options.skipToType[key] ? decodeURI(val[1]) : utils.toType(decodeURI(val[1]));
if (key) {
if (key.substr(-2, 2) === '[]') {