Browse Source

Fix undefined check in Excel import.

Andrew Klopper 9 years ago
parent
commit
9ecde56cb3

+ 1 - 1
feed_content/templates/feed_content/feed_category_import_excel.html

88
 <script>
88
 <script>
89
   'use strict';
89
   'use strict';
90
 
90
 
91
-  if (FileReader.prototype.readAsBinaryString === undefined) {
91
+  if (typeof FileReader.prototype.readAsBinaryString === 'undefined') {
92
     FileReader.prototype.readAsBinaryString = function (fileData) {
92
     FileReader.prototype.readAsBinaryString = function (fileData) {
93
       var binary = "";
93
       var binary = "";
94
       var pt = this;
94
       var pt = this;