Procházet zdrojové kódy

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

dev1
hristoterezov před 10 roky
rodič
revize
7b0343a017
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3
    0
      modules/RTC/ScreenObtainer.js

+ 3
- 0
modules/RTC/ScreenObtainer.js Zobrazit soubor

356
  */
356
  */
357
 function initInlineInstalls(options)
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
     $("link[rel=chrome-webstore-item]").attr("href",
362
     $("link[rel=chrome-webstore-item]").attr("href",
360
         getWebStoreInstallUrl(options));
363
         getWebStoreInstallUrl(options));
361
 }
364
 }

Načítá se…
Zrušit
Uložit