mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 21:53:24 +02:00
Save user settings to the database and embed them to the template for fast access.
This commit is contained in:
@@ -256,6 +256,13 @@ module.exports = function(options) {
|
||||
|
||||
new Promise(function(resolve) {
|
||||
socket.on('disconnect', resolve)
|
||||
// Settings
|
||||
.on('user.settings.update', function(data) {
|
||||
dbapi.updateUserSettings(user.email, data)
|
||||
})
|
||||
.on('user.settings.reset', function() {
|
||||
dbapi.resetUserSettings(user.email)
|
||||
})
|
||||
// Touch events
|
||||
.on('input.touchDown', createTouchHandler(wire.TouchDownMessage))
|
||||
.on('input.touchMove', createTouchHandler(wire.TouchMoveMessage))
|
||||
|
||||
Reference in New Issue
Block a user