Skip to content
This repository has been archived by the owner on May 19, 2023. It is now read-only.

Commit

Permalink
fix: in keyword throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Mar 3, 2021
1 parent e71e676 commit b8e08c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as Lucia from './index';
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', () => {
// @ts-expect-error
if (customLuciaInit in window) {
if (window.customLuciaInit) {
// @ts-expect-error
window.customLuciaInit(Lucia.init);
} else {
Expand Down

0 comments on commit b8e08c8

Please # to comment.