Try to directly install screen share extension

pull/6798/head
Diego Sampaio 9 years ago
parent 1ced54e6a8
commit 7b636a7bc3
No known key found for this signature in database
GPG Key ID: E060152B30502562
  1. 9
      packages/rocketchat-webrtc/WebRTCClass.coffee

@ -377,8 +377,13 @@ class WebRTCClass
, (isConfirm) =>
if isConfirm
if @navigator is 'chrome'
chrome.webstore.install undefined, refresh, ->
window.open('https://chrome.google.com/webstore/detail/rocketchat-screen-share/nocfbnnmjnndkbipkabodnheejiegccf')
url = 'https://chrome.google.com/webstore/detail/rocketchat-screen-share/nocfbnnmjnndkbipkabodnheejiegccf'
try
chrome.webstore.install url, refresh, ->
window.open(url)
refresh()
catch e
window.open(url)
refresh()
else if @navigator is 'firefox'
window.open('https://addons.mozilla.org/en-GB/firefox/addon/rocketchat-screen-share/')

Loading…
Cancel
Save