mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
24 lines
438 B
JavaScript
24 lines
438 B
JavaScript
module.exports = function AppStateProvider() {
|
|
var values = {
|
|
config: {
|
|
websocketUrl: ''
|
|
},
|
|
user: {
|
|
settings: {}
|
|
}
|
|
}
|
|
|
|
/*globals GLOBAL_APPSTATE:false*/
|
|
if (typeof GLOBAL_APPSTATE !== 'undefined') {
|
|
values = angular.extend(values, GLOBAL_APPSTATE)
|
|
}
|
|
|
|
return {
|
|
set: function (constants) {
|
|
angular.extend(values, constants)
|
|
},
|
|
$get: function () {
|
|
return values
|
|
}
|
|
}
|
|
}
|