mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Fix touch coordinates on Yoga Tablet 8.
This commit is contained in:
16
lib/units/device/plugins/flags.js
Normal file
16
lib/units/device/plugins/flags.js
Normal file
@@ -0,0 +1,16 @@
|
||||
var syrup = require('syrup')
|
||||
|
||||
module.exports = syrup.serial()
|
||||
.dependency(require('./data'))
|
||||
.define(function(options, data) {
|
||||
return {
|
||||
has: function(flag) {
|
||||
return data && data.flags && !!data.flags[flag]
|
||||
}
|
||||
, get: function(flag, defaultValue) {
|
||||
return data && data.flags && data.flags[flag] !== void 0
|
||||
? data.flags[flag]
|
||||
: defaultValue
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user