mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +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:
parent
cd92078043
commit
0a67c8c272
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ module.exports = function deviceContextMenuDirective($window) {
|
||||||
|
|
||||||
scope.saveScreenShot = function () {
|
scope.saveScreenShot = function () {
|
||||||
scope.control.screenshot().then(function (result) {
|
scope.control.screenshot().then(function (result) {
|
||||||
saveToDisk(result.body.href, result.body.date + '.jpg')
|
location.href = result.body.href + '?download'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue