@@ -22,7 +22,7 @@ async function initUI() {
22
22
const renderLock = Zotero . Promise . defer ( ) ;
23
23
if ( ! isWindowAlive ( addon . data . prefs . window ) ) return ;
24
24
addon . data . prefs . tableHelper = new ztoolkit . VirtualizedTable (
25
- addon . data . prefs . window !
25
+ addon . data . prefs . window ! ,
26
26
)
27
27
. setContainerId ( `${ config . addonRef } -table-container` )
28
28
. setProp ( {
@@ -99,7 +99,7 @@ function initEvents() {
99
99
. querySelector ( `#${ config . addonRef } -rule-add` )
100
100
?. addEventListener ( "command" , ( e ) => {
101
101
const key = addon . api . actionManager . updateAction (
102
- Object . assign ( { } , emptyAction )
102
+ Object . assign ( { } , emptyAction ) ,
103
103
) ;
104
104
updateUI ( ) ;
105
105
editAction ( key ) ;
@@ -134,7 +134,7 @@ function getRowData(index: number) {
134
134
return {
135
135
event : getString ( `prefs-rule-event-${ ActionEventTypes [ action . event ] } ` ) ,
136
136
operation : getString (
137
- `prefs-rule-operation-${ ActionOperationTypes [ action . operation ] } `
137
+ `prefs-rule-operation-${ ActionOperationTypes [ action . operation ] } ` ,
138
138
) ,
139
139
data : action . data ,
140
140
shortcut : action . shortcut ,
@@ -274,7 +274,7 @@ async function editAction(currentKey?: string) {
274
274
const content = await openEditorWindow ( dialogData . data ) ;
275
275
(
276
276
dialog . window . document . querySelector (
277
- "#data-input"
277
+ "#data-input" ,
278
278
) as HTMLTextAreaElement
279
279
) . value = content ;
280
280
dialogData . data = content ;
@@ -308,7 +308,7 @@ async function editAction(currentKey?: string) {
308
308
const key = ev . target as HTMLElement ;
309
309
const win = dialog . window ;
310
310
key . textContent = `[${ getString (
311
- "prefs-rule-edit-shortcut-placeholder"
311
+ "prefs-rule-edit-shortcut-placeholder" ,
312
312
) } ]`;
313
313
dialogData . shortcut = "" ;
314
314
const keyDownListener = ( e : KeyboardEvent ) => {
@@ -414,7 +414,7 @@ async function editAction(currentKey?: string) {
414
414
menu : dialogData . menu ,
415
415
name : dialogData . name ,
416
416
} ,
417
- currentKey
417
+ currentKey ,
418
418
) ;
419
419
updateUI ( ) ;
420
420
}
@@ -436,7 +436,7 @@ async function openEditorWindow(content: string) {
436
436
const editorWin = addon . data . prefs . window ?. openDialog (
437
437
"chrome://scaffold/content/monaco/monaco.html" ,
438
438
"monaco" ,
439
- "chrome,centerscreen,dialog=no,resizable,scrollbars=yes,width=800,height=600"
439
+ "chrome,centerscreen,dialog=no,resizable,scrollbars=yes,width=800,height=600" ,
440
440
) as
441
441
| ( Window & {
442
442
loadMonaco : ( options : Record < string , any > ) => Promise < { editor : any } > ;
0 commit comments