File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export async function initCitationFileCopyContent() {
3030 const citationCopyApa = document . querySelector < HTMLButtonElement > ( '#citation-copy-apa' ) ;
3131 const citationCopyBibtex = document . querySelector < HTMLButtonElement > ( '#citation-copy-bibtex' ) ;
3232 const inputContent = document . querySelector < HTMLInputElement > ( '#citation-copy-content' ) ;
33- const modal = document . querySelector < HTMLDivElement > ( '#cite-repo-modal' ) ;
33+ const modal = fomanticQuery ( '#cite-repo-modal' ) ;
3434
3535 if ( ( ! citationCopyApa && ! citationCopyBibtex ) || ! inputContent ) return ;
3636
@@ -43,8 +43,8 @@ export async function initCitationFileCopyContent() {
4343 } ;
4444
4545 document . querySelector ( '#cite-repo-button' ) ?. addEventListener ( 'click' , async ( ) => {
46- $ ( modal ) . modal ( 'show' ) ;
47- $ ( modal ) . addClass ( 'is-loading' ) ;
46+ modal . modal ( 'show' ) ;
47+ modal . addClass ( 'is-loading' ) ;
4848
4949 try {
5050 try {
@@ -69,7 +69,7 @@ export async function initCitationFileCopyContent() {
6969 inputContent . select ( ) ;
7070 } ) ;
7171 } finally {
72- $ ( modal ) . removeClass ( 'is-loading' ) ;
72+ modal . removeClass ( 'is-loading' ) ;
7373 }
7474 } ) ;
7575}
You can’t perform that action at this time.
0 commit comments