diff --git a/js/app/App.js b/js/app/App.js index 8828e3cfe..8072d1c32 100644 --- a/js/app/App.js +++ b/js/app/App.js @@ -26,7 +26,3 @@ var app = angular.module('Deck', [ 'ngAnimate' ]); -$('link[rel="shortcut icon"]').attr( - 'href', - OC.filePath('deck', 'img', 'app-512.png') -); diff --git a/js/app/Run.js b/js/app/Run.js index 8e12bdcae..547244dcb 100644 --- a/js/app/Run.js +++ b/js/app/Run.js @@ -18,4 +18,10 @@ app.run(function ($document, $rootScope, $transitions) { $transitions.onExit({from: 'board.detail'}, function ($state) { $rootScope.sidebar.show = false; }); + + $('link[rel="shortcut icon"]').attr( + 'href', + OC.filePath('deck', 'img', 'app-512.png') + ); + }); diff --git a/js/public/app.js b/js/public/app.js index e5ea32166..b0c43d261 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -27,10 +27,6 @@ var app = angular.module('Deck', [ 'ngAnimate' ]); -$('link[rel="shortcut icon"]').attr( - 'href', - OC.filePath('deck', 'img', 'app-512.png') -); app.config(["$provide", "$routeProvider", "$interpolateProvider", "$httpProvider", "$urlRouterProvider", "$stateProvider", "$compileProvider", function ($provide, $routeProvider, $interpolateProvider, $httpProvider, $urlRouterProvider, $stateProvider, $compileProvider) { 'use strict'; @@ -95,6 +91,12 @@ app.run(["$document", "$rootScope", "$transitions", function ($document, $rootSc $transitions.onExit({from: 'board.detail'}, function ($state) { $rootScope.sidebar.show = false; }); + + $('link[rel="shortcut icon"]').attr( + 'href', + OC.filePath('deck', 'img', 'app-512.png') + ); + }]);