Merge pull request #574 from SVG-Edit/issues/438

#438 Unable to select initial tool via URL parameters
This commit is contained in:
JFH
2021-06-07 10:23:41 +02:00
committed by GitHub

View File

@@ -251,6 +251,7 @@ export default class ConfigObj {
if (searchParams.has(`${prop}[color]`)) {
// Restore back to original non-deparamed value to avoid color
// strings being converted to numbers
if(this.urldata[prop] === undefined) { this.urldata[prop] = {}; }
this.urldata[prop].color = searchParams.get(`${prop}[color]`);
}
});