Skip to content

Commit

Permalink
Remove eslint disable statements
Browse files Browse the repository at this point in the history
  • Loading branch information
user890104 committed Jun 8, 2024
1 parent 747d1ca commit a4df409
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hooks/useVariant.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export function useVariant() {
// eslint-disable-next-line no-restricted-globals
switch (location.hostname) {
switch (window.location.hostname) {
case 'space.initlab.org':
case 'initlab.github.io':
return 'initlab';
Expand All @@ -10,8 +9,7 @@ export function useVariant() {
// fallthrough to query param and local storage
}

// eslint-disable-next-line no-restricted-globals
const queryParam = (new URLSearchParams(location.search)).get('variant');
const queryParam = (new URLSearchParams(window.location.search)).get('variant');

if (queryParam) {
return queryParam;
Expand Down

0 comments on commit a4df409

Please sign in to comment.