Update edit-foreign icon
Also, a tweak to the loading code. (Needs to be completely rewritten.)
This commit is contained in:
parent
0b459d0a47
commit
e744a697c2
3 changed files with 12 additions and 7 deletions
|
@ -2949,8 +2949,8 @@ function svg_edit_setup() {
|
|||
|
||||
// Load source if given
|
||||
var loc = document.location.href;
|
||||
if(loc.indexOf('?source=') != -1) {
|
||||
var pre = '?source=data:image/svg+xml;base64,';
|
||||
if(loc.indexOf('source=data') != -1) {
|
||||
var pre = 'source=data:image/svg+xml;base64,';
|
||||
var src = loc.substring(loc.indexOf(pre) + pre.length);
|
||||
svgCanvas.setSvgString(Utils.decode64(src));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue