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$$', '');
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
***** BEGIN LICENSE BLOCK *****
|
||||
|
||||
Copyright © 2024 YOUR_NAME <- TODO
|
||||
Copyright © $$YEAR$$ YOUR_NAME <- TODO
|
||||
|
||||
This file is part of Zotero.
|
||||
|
||||
|
|
Loading…
Reference in a new issue