浏览代码

:bug: bug

LI JIAHAO 6 年之前
父节点
当前提交
fcec2ec82b
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      dist/webshot.js
  2. 1 1
      src/webshot.ts

+ 1 - 1
dist/webshot.js

@@ -48,7 +48,7 @@ function renderWebshot(url, height) {
         });
     });
     return promise.then(data => {
-        if (data.boundary != null)
+        if (data.boundary === null)
             return renderWebshot(url, height * 2);
         else
             return data.data;

+ 1 - 1
src/webshot.ts

@@ -47,7 +47,7 @@ function renderWebshot(url: string, height: number): Promise<string> {
       });
   });
   return promise.then(data => {
-    if (data.boundary != null) return renderWebshot(url, height * 2);
+    if (data.boundary === null) return renderWebshot(url, height * 2);
     else return data.data;
   })
 }