mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Save user settings to the database and embed them to the template for fast access.
This commit is contained in:
@@ -1,17 +1,2 @@
|
||||
require('localforage')
|
||||
require('angular-localForage')
|
||||
|
||||
module.exports = angular.module('stf/settings', [
|
||||
'LocalForageModule'
|
||||
])
|
||||
.config(['$localForageProvider', function ($localForageProvider) {
|
||||
$localForageProvider.config({
|
||||
driver: 'localStorageWrapper',
|
||||
name: 'stf-v0',
|
||||
version: 1.0,
|
||||
storeName: 'settings',
|
||||
description: 'STF Local Settings'
|
||||
})
|
||||
|
||||
}])
|
||||
module.exports = angular.module('stf/settings', [])
|
||||
.factory('SettingsService', require('./settings-service'))
|
||||
|
||||
Reference in New Issue
Block a user