Added proper standalone support.

This commit is contained in:
Gunther Brunner
2014-09-24 19:38:46 +09:00
parent 7a344e7043
commit 33fad24ed4
9 changed files with 45 additions and 23 deletions

View File

@@ -1,9 +1,7 @@
module.exports =
function ControlPanesController($scope, $http, gettext, $routeParams,
$timeout, $location, DeviceService, GroupService, ControlService,
StorageService, FatalMessageService, SettingsService, $window, $rootScope) {
$rootScope.standalone = $window.history.length < 2
StorageService, FatalMessageService, SettingsService) {
var sharedTabs = [
{