Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Handle EventListener for Internet-Explorer on Key-File-Load
Browse files Browse the repository at this point in the history
  • Loading branch information
Petschko committed Sep 24, 2017
1 parent ad5a819 commit 18fca5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ <h2>File-List</h2>
<script src="libs/lz-string.min.js"></script>
<script src="scripts/RPGFile.js?ver=1.1"></script>
<script src="scripts/ErrorException.js?ver=1.0"></script>
<script src="scripts/Decrypter.js?ver=1.2"></script>
<script src="scripts/Decrypter.js?ver=1.2.1"></script>
<script src="scripts/ZIP.js?ver=0.3"></script>
<script src="scripts/functions.js?ver=1.2.1"></script>
</body>
Expand Down
3 changes: 2 additions & 1 deletion scripts/Decrypter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 18fca5d

Please sign in to comment.