File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686 " sources/sandboxManager.js" ,
8787 " sources/zotero-utilities/openurl.js" ,
8888 " sources/zotero-utilities/date.js" ,
89+ " sources/zotero-utilities/resource/dateFormats.json" ,
8990 " sources/zotero-utilities/xregexp-all.js" ,
9091 " sources/zotero-utilities/xregexp-unicode-zotero.js" ,
9192 " sources/zotero-utilities/utilities.js" ,
Original file line number Diff line number Diff line change @@ -23,3 +23,11 @@ if (browser.webRequest) {
2323 // webRequest is not available some contexts, so check before initializing
2424 Zotero . WebRequestIntercept . init ( ) ;
2525}
26+
27+ Zotero . Date . init (
28+ JSON . parse (
29+ await (
30+ await fetch ( new URL ( "./zotero-utilities/resource/dateFormats.json" , import . meta. url ) )
31+ ) . text ( ) ,
32+ ) ,
33+ ) ;
Original file line number Diff line number Diff line change 11globalThis . Zotero = {
22 isConnector : true ,
33 isBrowserExt : true ,
4+ locale : "en-US" ,
45 logError : console . error ,
56 debug : console . debug ,
67 Prefs : {
You can’t perform that action at this time.
0 commit comments