diff --git a/index.html b/index.html index 89bafb9..48b1c9d 100644 --- a/index.html +++ b/index.html @@ -310,7 +310,7 @@

File-List

- + diff --git a/scripts/Decrypter.js b/scripts/Decrypter.js index 9588985..441ecda 100644 --- a/scripts/Decrypter.js +++ b/scripts/Decrypter.js @@ -273,7 +273,8 @@ Decrypter.prototype.encryptFile = function(rpgFile, callback) { Decrypter.detectEncryptionCode = function(rpgFile, callback) { var reader = new FileReader(); - reader.addEventListener('load', function() { + reader[window.addEventListener ? 'addEventListener' : 'attachEvent'] + (window.addEventListener ? 'load' : 'onload', function() { var key; var fileContent;