mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 12:55:26 +02:00
URLs can now be opened.
This commit is contained in:
@@ -556,6 +556,16 @@ module.exports = function(options) {
|
||||
)
|
||||
])
|
||||
})
|
||||
.on('browser.open', function(channel, responseChannel, data) {
|
||||
joinChannel(responseChannel)
|
||||
push.send([
|
||||
channel
|
||||
, wireutil.transaction(
|
||||
responseChannel
|
||||
, new wire.BrowserOpenMessage(data)
|
||||
)
|
||||
])
|
||||
})
|
||||
})
|
||||
.finally(function() {
|
||||
// Clean up all listeners and subscriptions
|
||||
@@ -582,8 +592,6 @@ module.exports = function(options) {
|
||||
socket.on('forward', function(data) {})
|
||||
socket.on('refresh', function(data) {})
|
||||
socket.on('internal.relaunch', function(data) {})
|
||||
socket.on('browser.open', function(data) {})
|
||||
socket.on('chrome.open', function(data) {})
|
||||
socket.on('browser.clear', function(data) {})
|
||||
socket.on('chrome.clear', function(data) {})
|
||||
socket.on('internal.clear', function(data) {})
|
||||
|
||||
Reference in New Issue
Block a user