Skip to content

Commit

Permalink
undo index.html ejs condition
Browse files Browse the repository at this point in the history
  • Loading branch information
medyo committed Jul 22, 2023
1 parent 8ec7c7f commit a6ac8ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
<link rel="preconnect" href="https://hackertab.dev" />
<script src="/startup.js"></script>


<% if (env.VITE_BUILD_TARGET === 'web') { %>
<title>Hackertab</title>
<link rel="manifest" href="%PUBLIC_URL%/web_manifest.json" />
<% } else { %>
<title>New Tab</title>
<% } %>
</head>
<body class="preload">
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"timeago.js": "^4.0.2",
"type-fest": "^1.2.0",
"web-vitals": "^0.2.4",
"zustand": "^4.3.3"
"zustand": "^4.3.3",
"vite-plugin-ejs": "^1.6.4"
},
"proxy": "https://api.hackertab.dev/",
"scripts": {
Expand Down Expand Up @@ -96,7 +97,6 @@
"prettier": "^2.7.1",
"typescript": "^5.1.6",
"vite": "^4.4.5",
"vite-plugin-ejs": "^1.6.4",
"vite-plugin-svgr": "^3.2.0",
"vite-tsconfig-paths": "^4.2.0"
}
Expand Down

0 comments on commit a6ac8ba

Please sign in to comment.