refactor code

This commit is contained in:
MaysWind 2016-06-26 21:40:56 +08:00
parent 6406e6816b
commit c526d323be

View file

@ -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 = [];