Skip to content

Commit

Permalink
More whitelists
Browse files Browse the repository at this point in the history
  • Loading branch information
coderofstuff committed Dec 13, 2023
1 parent dc41472 commit a2090c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,19 @@ async function getAppData(router, deviceType = 'usb') {
}
}

const WHITELIST = ['kasvault.io', 'preview.kasvault.io'];
const WHITELIST = [
'kasvault.io',
'preview.kasvault.io',
'privatepreview.kasvault.io',
'kasvault.vercel.app',
];

export default function Home() {
const router = useRouter();
const { width } = useViewportSize();

let siteHostname = 'INVALID SITE';

console.info(globalThis.location.hostname);

if (globalThis.location.hostname === 'localhost') {
siteHostname = 'http://localhost:3000';
} else {
Expand Down

0 comments on commit a2090c4

Please sign in to comment.