Commit c7d2aca7 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fix for firefox

parent 5c155e48
...@@ -59,10 +59,7 @@ function handleImage(e) { ...@@ -59,10 +59,7 @@ function handleImage(e) {
//data:image/jpeg;base64, //data:image/jpeg;base64,
myimg = event.target.result; myimg = event.target.result;
myimg = myimg.replace(/^data:;base64,/ig,"data:image/jpeg;base64,");
if (myimg.indexOf("data:image")==-1){
myimg = "data:image/jpeg;base64,"+myimg.substr(13);
}
//console.log(SETTINGS.width); //console.log(SETTINGS.width);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment