diff --git a/src/scripts/services/ariaNgFileService.js b/src/scripts/services/ariaNgFileService.js index 773fed5..cdd7709 100644 --- a/src/scripts/services/ariaNgFileService.js +++ b/src/scripts/services/ariaNgFileService.js @@ -1,8 +1,8 @@ (function () { 'use strict'; - angular.module('ariaNg').factory('ariaNgFileService', ['ariaNgCommonService', function (ariaNgCommonService) { - var isSupportFileReader = !!FileReader; + angular.module('ariaNg').factory('ariaNgFileService', ['$window', 'ariaNgCommonService', function ($window, ariaNgCommonService) { + var isSupportFileReader = !!$window.FileReader; var getAllowedExtensions = function (fileFilter) { var extensions = [];