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
This commit is contained in:
Brett Zamir
2013-10-29 03:43:10 +00:00
parent a682236528
commit 2b35ec344b
2 changed files with 8 additions and 5 deletions

View File

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