Skip to content

Commit

Permalink
fix: do not use currentScript attribute (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuisi committed Jun 18, 2024
1 parent de19e8a commit a3bfc1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode-lean4/loogleview/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class LoogleView {

private history: LoogleQueryHistory = new LoogleQueryHistory()
private abbreviationConfig: AbbreviationConfig = JSON.parse(
document.currentScript!.getAttribute('abbreviation-config')!,
document.querySelector('script[data-id="loogleview-script"]')!.getAttribute('abbreviation-config')!,
)
private rewriter: InputAbbreviationRewriter = new InputAbbreviationRewriter(
this.abbreviationConfig,
Expand Down

0 comments on commit a3bfc1a

Please sign in to comment.