mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -8,15 +8,15 @@ module.exports = function deviceContextMenuDirective($window) {
|
||||
//},
|
||||
transclude: true,
|
||||
template: require('./device-context-menu.jade'),
|
||||
link: function (scope) {
|
||||
link: function(scope) {
|
||||
//var device = scope.device()
|
||||
//var control = scope.control()
|
||||
scope.windowClose = function () {
|
||||
scope.windowClose = function() {
|
||||
$window.close()
|
||||
}
|
||||
|
||||
scope.saveScreenShot = function () {
|
||||
scope.control.screenshot().then(function (result) {
|
||||
scope.saveScreenShot = function() {
|
||||
scope.control.screenshot().then(function(result) {
|
||||
location.href = result.body.href + '?download'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user