From 2b35ec344b5a22ce2e9551d896f9379119d970ab Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Tue, 29 Oct 2013 03:43:10 +0000 Subject: [PATCH] Prevent errors in svg-editor when imagelib extension is used; Update imagelib to proper HTML5 with charset git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2611 eee81c28-f429-11dd-99c0-75d572ba1ddd --- editor/extensions/imagelib/index.html | 11 +++++++---- editor/svg-editor.js | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/editor/extensions/imagelib/index.html b/editor/extensions/imagelib/index.html index f5b674a4..0c39c28b 100644 --- a/editor/extensions/imagelib/index.html +++ b/editor/extensions/imagelib/index.html @@ -1,14 +1,15 @@ - + + + + - - +

Select an image:

smiley.svg
logo.png - + + diff --git a/editor/svg-editor.js b/editor/svg-editor.js index 8f7e795a..970b6f9e 100644 --- a/editor/svg-editor.js +++ b/editor/svg-editor.js @@ -4612,7 +4612,7 @@ try { window.addEventListener('message', function(e) { // We accept and post strings for the sake of IE9 support - if (typeof e.data !== 'string') { + if (typeof e.data !== 'string' || e.data.charAt() === '|') { return; } var data = JSON.parse(e.data);