lushuncheng 4 vuotta sitten
vanhempi
commit
e27f4a4863
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      public/demo.html

+ 1 - 1
public/demo.html

@@ -45,7 +45,7 @@
     <script type="text/javascript">
       var ua = navigator.userAgent.toLocaleUpperCase().indexOf("WEIBO") >= 0;
       alert(ua);
-      if (!ua) {
+      if (ua) {
         let url = "https://sina.shuncheng.lu/demo.html"; // 要打开的 H5 页面的地址
         let scheme = `sinaweibo://browser?url=` + encodeURIComponent(url);
         window.location.href = `https://m.weibo.cn/feature/openapp?scheme=` + encodeURIComponent(scheme);