lushuncheng 4 年之前
父节点
当前提交
e27f4a4863
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);