mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 12:55:26 +02:00
Added proper standalone support.
This commit is contained in:
@@ -13,3 +13,4 @@ module.exports = angular.module('device-control.standalone', [
|
||||
}])
|
||||
.controller('StandaloneCtrl', require('./standalone-controller'))
|
||||
.factory('StandaloneService', require('./standalone-service'))
|
||||
.directive('standalone', require('./standalone-directive'))
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
module.exports = function standaloneDirective($rootScope, $window) {
|
||||
return {
|
||||
restrict: 'AE',
|
||||
link: function () {
|
||||
$rootScope.standalone = $window.history.length < 2
|
||||
//$rootScope.standalone = true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user