Skip to content

Commit

Permalink
Try to directly install screen share extension
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed Apr 25, 2017
1 parent 1ced54e commit 7b636a7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/rocketchat-webrtc/WebRTCClass.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down

0 comments on commit 7b636a7

Please sign in to comment.