diff --git a/build/ng-admin.jwt-auth.js b/build/ng-admin.jwt-auth.js index 0a6baaa..239023f 100644 --- a/build/ng-admin.jwt-auth.js +++ b/build/ng-admin.jwt-auth.js @@ -165,6 +165,10 @@ ngAdminJWTAuth.config(['$stateProvider', '$httpProvider', function ($stateProvid if (!template) { return require('./loginTemplate'); } + + if (!template.endsWith('.html')) { + return template; + } return $http.get(template).then(function(response){ return response.data; diff --git a/build/ng-admin.jwt-auth.min.js b/build/ng-admin.jwt-auth.min.js index 6b406e5..88cf0e6 100644 --- a/build/ng-admin.jwt-auth.min.js +++ b/build/ng-admin.jwt-auth.min.js @@ -1,2 +1,2 @@ -/*! ng-admin.jwt-auth 2016-04-02 */ -!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g(new Date).valueOf()+1e3*b)}})}()},{}]},{},[7,1,2,3,4,5,6]); \ No newline at end of file +/*! ng-admin.jwt-auth 2016-04-04 */ +!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g(new Date).valueOf()+1e3*b)}})}()},{}]},{},[7,1,2,3,4,5,6]); \ No newline at end of file diff --git a/js/module.js b/js/module.js index fbc7929..e80facf 100644 --- a/js/module.js +++ b/js/module.js @@ -15,6 +15,10 @@ ngAdminJWTAuth.config(['$stateProvider', '$httpProvider', function ($stateProvid if (!template) { return require('./loginTemplate'); } + + if (!template.endsWith('.html')) { + return template; + } return $http.get(template).then(function(response){ return response.data;