Merge pull request #574 from SVG-Edit/issues/438
#438 Unable to select initial tool via URL parameters
This commit is contained in:
@@ -251,6 +251,7 @@ export default class ConfigObj {
|
|||||||
if (searchParams.has(`${prop}[color]`)) {
|
if (searchParams.has(`${prop}[color]`)) {
|
||||||
// Restore back to original non-deparamed value to avoid color
|
// Restore back to original non-deparamed value to avoid color
|
||||||
// strings being converted to numbers
|
// strings being converted to numbers
|
||||||
|
if(this.urldata[prop] === undefined) { this.urldata[prop] = {}; }
|
||||||
this.urldata[prop].color = searchParams.get(`${prop}[color]`);
|
this.urldata[prop].color = searchParams.get(`${prop}[color]`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user