enzostvs HF Staff commited on
Commit
144ac12
·
1 Parent(s): 37fdb0e
Files changed (1) hide show
  1. server.js +3 -1
server.js CHANGED
@@ -102,8 +102,10 @@ app.post("/api/deploy", checkUser, async (req, res) => {
102
  });
103
  }
104
 
 
 
105
  if (!path) {
106
- const newHtml = html.replace(
107
  /<\/body>/,
108
  `<p style="text-align: center; font-size: 12px; color: #888; margin-top: 16px;">This website has been generated by <a href="https://enzostvs-deepsite.hf.space" target="_blank">DeepSite</a> <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body>`
109
  );
 
102
  });
103
  }
104
 
105
+ let newHtml = html;
106
+
107
  if (!path) {
108
+ newHtml = html.replace(
109
  /<\/body>/,
110
  `<p style="text-align: center; font-size: 12px; color: #888; margin-top: 16px;">This website has been generated by <a href="https://enzostvs-deepsite.hf.space" target="_blank">DeepSite</a> <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;"></p></body>`
111
  );