Files
stf-DeviceFarmer/res/app/components/stf/app-state/app-state-provider.js
Serhii Manko 40757e73a4 Upload the ipa files for the iOS platform (#583)
Signed-off-by: Serhii Manko <mankoffserg@gmail.com>

Signed-off-by: Serhii Manko <mankoffserg@gmail.com>
2022-09-20 15:54:19 +02:00

28 lines
477 B
JavaScript

module.exports = function AppStateProvider() {
var values = {
config: {
websocketUrl: ''
},
user: {
settings: {}
},
device: {
platform: ''
}
}
/* global 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
}
}
}