summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-11-05 10:34:58 +0100
committerYorhel <git@yorhel.nl>2019-11-10 12:44:55 +0100
commit24f03ae521a6b35def38788e0446201aa6095314 (patch)
tree8162ef1a151d35731dfcf099703c401af5b9b058 /data
parent3af0103b6bcc791142f78664bc449263c99571fb (diff)
JS: Add LibreJS compatibility + use embedded comment tag to sort v2rw.js files
I found myself forgetting to add a file to $JS_FILES in the Makefile several times now, and with Perl and Elm modules being detected and loaded automatically, it feels weird not to do the same for .js files. This embedded order trick is ugly, but it's pretty simple and gets the job done.
Diffstat (limited to 'data')
-rw-r--r--data/js/main.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/js/main.js b/data/js/main.js
index 3d4248b9..de2fba2e 100644
--- a/data/js/main.js
+++ b/data/js/main.js
@@ -1,3 +1,8 @@
+// @license magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt AGPL-3.0-only
+// @source: https://code.blicky.net/yorhel/vndb/src/branch/master/data/js
+// SPDX-License-Identifier: AGPL-3.0-only
+
+
/* This is the main Javascript file. This file is processed by util/jsgen.pl to
* generate the final JS file(s) used by the site. */
@@ -48,3 +53,5 @@ VARS = /*VARS*/;
// Character editing (/c+/edit)
//include chartraits.js
//include charvns.js
+
+// @license-end