Does not reload the page after Chrome desktop sharing extension is installed.

This commit is contained in:
paweldomas 2015-06-17 10:11:30 +02:00
parent 3f9b220ee9
commit a6c8d0787a
3 changed files with 11 additions and 7 deletions

View File

@ -19,7 +19,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib --> <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib --> <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script> <script src="interface_config.js?v=5"></script>
<script src="libs/app.bundle.js?v=85"></script> <script src="libs/app.bundle.js?v=86"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin --> <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=7"/> <link rel="stylesheet" href="css/font.css?v=7"/>
<link rel="stylesheet" href="css/toastr.css?v=1"> <link rel="stylesheet" href="css/toastr.css?v=1">

View File

@ -9993,9 +9993,11 @@ function obtainScreenFromExtension(streamCallback, failCallback) {
getWebStoreInstallUrl(), getWebStoreInstallUrl(),
function (arg) { function (arg) {
console.log("Extension installed successfully", arg); console.log("Extension installed successfully", arg);
// We need to reload the page in order to get the access to extInstalled = true;
// chrome.runtime // We need to give a moment for the endpoint to become available
window.location.reload(false); window.setTimeout(function () {
doGetStreamFromExtension(streamCallback, failCallback);
}, 500);
}, },
function (arg) { function (arg) {
console.log("Failed to install the extension", arg); console.log("Failed to install the extension", arg);

View File

@ -188,9 +188,11 @@ function obtainScreenFromExtension(streamCallback, failCallback) {
getWebStoreInstallUrl(), getWebStoreInstallUrl(),
function (arg) { function (arg) {
console.log("Extension installed successfully", arg); console.log("Extension installed successfully", arg);
// We need to reload the page in order to get the access to extInstalled = true;
// chrome.runtime // We need to give a moment for the endpoint to become available
window.location.reload(false); window.setTimeout(function () {
doGetStreamFromExtension(streamCallback, failCallback);
}, 500);
}, },
function (arg) { function (arg) {
console.log("Failed to install the extension", arg); console.log("Failed to install the extension", arg);