manu-sapiens commited on
Commit
d0bec96
·
1 Parent(s): 4a05547

added DUPLICATE SPACE button to the first time visit when omnitool is running

Browse files
Files changed (1) hide show
  1. myNodeServer.js +5 -2
myNodeServer.js CHANGED
@@ -3,7 +3,7 @@
3
  * All rights reserved.
4
  */
5
  //@ts-check
6
- const VERSION = '0.6.0.hf.007b';
7
 
8
  const express = require('express');
9
  const http = require('http');
@@ -366,7 +366,10 @@ async function handleGetRoot(req, res)
366
  {
367
  console.log('First time visitor');
368
  const gotoButtonClass = 'highlight-button';
369
- const buttonsHTML = `<button id="exitIframeButton" class="${gotoButtonClass}" onclick="exitIframe()">GOTO OMNITOOL</button>`;
 
 
 
370
  const html = getButtonsString(buttonsHTML);
371
  res.writeHead(200, { 'Content-Type': 'text/html' });
372
  res.end(html);
 
3
  * All rights reserved.
4
  */
5
  //@ts-check
6
+ const VERSION = '0.6.0.hf.008a';
7
 
8
  const express = require('express');
9
  const http = require('http');
 
366
  {
367
  console.log('First time visitor');
368
  const gotoButtonClass = 'highlight-button';
369
+
370
+ let buttonsHTML = `
371
+ <button id="exitIframeButton" class="${gotoButtonClass}" onclick="exitIframe()">GOTO OMNITOOL</button>
372
+ <a href="${HF_SPACE_DUPLICATE_URL}" target="_blank" class="button-like-link" id="duplicateRepoButton">DUPLICATE SPACE</a>`;
373
  const html = getButtonsString(buttonsHTML);
374
  res.writeHead(200, { 'Content-Type': 'text/html' });
375
  res.end(html);