Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ThinLiquid authored May 11, 2024
1 parent 7527ee2 commit 737e631
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ if (params.has('crt')) {
document.body.classList.add('crt')
}
if (params.has('debug')) {
const { default: eruda } = await import('eruda')
eruda.init()
;(function () {
var src = '//cdn.jsdelivr.net/npm/eruda';
if (!/eruda=true/.test(window.location) && localStorage.getItem('active-eruda') != 'true') return;

Check failure on line 53 in src/main.ts

View workflow job for this annotation

GitHub Actions / deploy

Argument of type 'Location' is not assignable to parameter of type 'string'.
document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
document.write('<scr' + 'ipt>eruda.init();</scr' + 'ipt>');
})();
}

const auth = (): SpotifyApi => SpotifyApi.withUserAuthorization(
Expand Down

0 comments on commit 737e631

Please sign in to comment.