Fix removing images

Closes #7
You are now able to remove images all imags again

Closes #10
All images will now get exported instead of only the ones uploaded last
This commit is contained in:
javl
2017-04-28 01:09:08 +02:00
parent 57853965a7
commit bfc03e010c
+1 -4
View File
@@ -358,7 +358,7 @@
// The variable to hold our images. Global so we can easily reuse it when the // The variable to hold our images. Global so we can easily reuse it when the
// user updates the settings (change canvas size, scale, invert, etc) // user updates the settings (change canvas size, scale, invert, etc)
var images; var images = new Images();
// A bunch of settings used when converting // A bunch of settings used when converting
var settings = { var settings = {
@@ -521,8 +521,6 @@
// Handle inserting an image by pasting code // Handle inserting an image by pasting code
function handleTextInput(drawMode){ function handleTextInput(drawMode){
images = new Images();
var canvas = document.createElement('canvas'); var canvas = document.createElement('canvas');
canvas.width = parseInt(document.getElementById("text-input-width").value); canvas.width = parseInt(document.getElementById("text-input-width").value);
canvas.height = parseInt(document.getElementById("text-input-height").value); canvas.height = parseInt(document.getElementById("text-input-height").value);
@@ -602,7 +600,6 @@
} }
var reader = new FileReader(); var reader = new FileReader();
images = new Images();
reader.onload = (function(file) { reader.onload = (function(file) {
return function(e) { return function(e) {