Agriya Dev5 2021-05-27 14:17:01 +05:30
parent 1abd55a698
commit f3ee637903
3 changed files with 6 additions and 6 deletions

View File

@ -7,8 +7,7 @@
"stackblur-canvas", "stackblur-canvas",
"regenerator-runtime", "regenerator-runtime",
"core-js-bundle", "core-js-bundle",
"underscore", "underscore"
"deparam"
], ],
"filesByLicense": { "filesByLicense": {
"(MIT OR GPL-2.0)": ["src/editor/jquerybbq/jquery.bbq.min.js"], "(MIT OR GPL-2.0)": ["src/editor/jquerybbq/jquery.bbq.min.js"],

View File

@ -96,7 +96,6 @@
"@web/dev-server-rollup": "0.3.4", "@web/dev-server-rollup": "0.3.4",
"canvg": "3.0.7", "canvg": "3.0.7",
"core-js": "3.12.1", "core-js": "3.12.1",
"deparam": "1.0.5",
"elix": "15.0.0", "elix": "15.0.0",
"i18next": "20.3.0", "i18next": "20.3.0",
"jquery": "3.6.0", "jquery": "3.6.0",

View File

@ -1,5 +1,4 @@
// eslint-disable-next-line node/no-unpublished-import // eslint-disable-next-line node/no-unpublished-import
import deparam from 'deparam';
import { mergeDeep } from './components/jgraduate/Util.js'; import { mergeDeep } from './components/jgraduate/Util.js';
/** /**
@ -240,9 +239,12 @@ export default class ConfigObj {
*/ */
loadFromURL () { loadFromURL () {
const { search, searchParams } = new URL(location); const { search, searchParams } = new URL(location);
if (search) { if (search) {
this.urldata = deparam(searchParams.toString()); this.urldata = {};
const entries = searchParams.entries();
for(const entry of entries) {
this.urldata[entry[0]] = entry[1];
}
[ 'initStroke', 'initFill' ].forEach((prop) => { [ 'initStroke', 'initFill' ].forEach((prop) => {
if (searchParams.has(`${prop}[color]`)) { if (searchParams.has(`${prop}[color]`)) {