From c526d323bee4cc096ac91639a730a04b881ef543 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 26 Jun 2016 21:40:56 +0800 Subject: [PATCH] refactor code --- src/scripts/services/ariaNgFileService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = [];