Commit 266ce040 authored by bingchuan's avatar bingchuan

[dev] version 2.18.4

parent db54ffc9
/*!
* angular-translate - v2.13.1 - 2016-12-06
* angular-translate - v2.18.4 - 2021-01-14
*
* Copyright (c) 2016 The angular-translate team, Pascal Precht; Licensed MIT
* Copyright (c) 2021 The angular-translate team, Pascal Precht; Licensed MIT
*/
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
......@@ -9,7 +9,7 @@
define([], function () {
return (factory());
});
} else if (typeof exports === 'object') {
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
......@@ -19,10 +19,10 @@
}
}(this, function () {
$translateLocalStorageFactory.$inject = ['$window', '$translateCookieStorage'];
angular.module('pascalprecht.translate')
$translateLocalStorageFactory.$inject = ['$window', '$translateCookieStorage'];
angular.module('pascalprecht.translate')
/**
/**
* @ngdoc object
* @name pascalprecht.translate.$translateLocalStorage
* @requires $window
......@@ -33,9 +33,9 @@ angular.module('pascalprecht.translate')
* to use localStorage as storage.
*
*/
.factory('$translateLocalStorage', $translateLocalStorageFactory);
.factory('$translateLocalStorage', $translateLocalStorageFactory);
function $translateLocalStorageFactory($window, $translateCookieStorage) {
function $translateLocalStorageFactory($window, $translateCookieStorage) {
'use strict';
......@@ -115,9 +115,9 @@ function $translateLocalStorageFactory($window, $translateCookieStorage) {
}
var $translateLocalStorage = hasLocalStorageSupport ? localStorageAdapter : $translateCookieStorage;
return $translateLocalStorage;
}
}
$translateLocalStorageFactory.displayName = '$translateLocalStorageFactory';
return 'pascalprecht.translate';
$translateLocalStorageFactory.displayName = '$translateLocalStorageFactory';
return 'pascalprecht.translate';
}));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment