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

Commit

Permalink
refactor: rename customLuciaInit to LuciaInit for concise
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Mar 27, 2021
1 parent de5424d commit 082a73b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
const customLuciaInit = window.customLuciaInit;
const customLuciaInit = window.LuciaInit;

if (customLuciaInit) {
customLuciaInit(Lucia.init);
Expand Down
2 changes: 1 addition & 1 deletion src/core/reactive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const reactive = (
}
},
set(target: UnknownKV, key: string, value: unknown): boolean {
// Do not allow function mutation
// Do not allow function or special property mutation
if (typeof state[key] === 'function' || key.startsWith('$')) return false;

// Currently double renderes - bad perf
Expand Down

0 comments on commit 082a73b

Please sign in to comment.