Update edit-foreign icon

Also, a tweak to the loading code.
(Needs to be completely rewritten.)
This commit is contained in:
Jacques Distler 2010-02-12 09:12:01 -06:00
parent 0b459d0a47
commit e744a697c2
3 changed files with 12 additions and 7 deletions

View file

@ -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));
}