|
|
@@ -11,8 +11,12 @@ hostname = img.client.10010.com
|
|
|
*/
|
|
|
|
|
|
let body = $response.body;
|
|
|
+console.log(body);
|
|
|
+if (body) {
|
|
|
+ let injectionStr = `<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>\n<script>var vConsole = new window.VConsole();</script>`;
|
|
|
+ body = body.replace(/<\/body>/i, injectionStr + "</body>");
|
|
|
|
|
|
-let injectionStr = `<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>\n<script>var vConsole = new window.VConsole();</script>`;
|
|
|
-body = body.replace(/<\/body>/i, injectionStr + "</body>");
|
|
|
-
|
|
|
-$done({ body: body })
|
|
|
+ $done({ body: body });
|
|
|
+} else {
|
|
|
+ $done({});
|
|
|
+}
|