mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Save Screenshot feature now done on server side since the client-side way doesn't work in all browsers.
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = function deviceContextMenuDirective($window) {
|
||||
|
||||
scope.saveScreenShot = function () {
|
||||
scope.control.screenshot().then(function (result) {
|
||||
saveToDisk(result.body.href, result.body.date + '.jpg')
|
||||
location.href = result.body.href + '?download'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user