Scaffold: Update copyright year automatically
This commit is contained in:
parent
6d02076a1c
commit
cee1e3a596
2 changed files with 2 additions and 1 deletions
|
@ -924,6 +924,7 @@ var Scaffold = new function () {
|
|||
//newWeb, scrapeEM, scrapeRIS, scrapeBibTeX, scrapeMARC
|
||||
//These names in the XUL file have to match the file names in template folder.
|
||||
let value = Zotero.File.getContentsFromURL(`chrome://scaffold/content/templates/${template}.js`);
|
||||
value = value.replace('$$YEAR$$', new Date().getFullYear());
|
||||
let cursorOffset = value.indexOf('$$CURSOR$$');
|
||||
value = value.replace('$$CURSOR$$', '');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue