浏览代码

Creates link element in the head the screen sharing from the JS code

master
hristoterezov 9 年前
父节点
当前提交
7b0343a017
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      modules/RTC/ScreenObtainer.js

+ 3
- 0
modules/RTC/ScreenObtainer.js 查看文件

@@ -356,6 +356,9 @@ function doGetStreamFromExtension(options, streamCallback, failCallback) {
356 356
  */
357 357
 function initInlineInstalls(options)
358 358
 {
359
+    if($("link[rel=chrome-webstore-item]").length === 0) {
360
+        $("head").append("<link rel=\"chrome-webstore-item\">");
361
+    }
359 362
     $("link[rel=chrome-webstore-item]").attr("href",
360 363
         getWebStoreInstallUrl(options));
361 364
 }

正在加载...
取消
保存