Add browser doip link

This commit is contained in:
Yarmo Mackenbach 2020-12-10 17:44:14 +01:00
parent 51322a5664
commit 95b30ab27a
2 changed files with 7 additions and 0 deletions

View file

@ -30,6 +30,12 @@ more information on this, and how to apply and follow the GNU AGPL, see <https:/
const express = require('express'); const express = require('express');
const router = require('express').Router(); const router = require('express').Router();
router.get('/doip.min.js', function(req, res) {
res.sendFile(`node_modules/doipjs/dist/doip.min.js`, { root: `${__dirname}/../` })
});
router.get('/doip.js', function(req, res) {
res.sendFile(`node_modules/doipjs/dist/doip.js`, { root: `${__dirname}/../` })
});
router.get('/openpgp.min.js', function(req, res) { router.get('/openpgp.min.js', function(req, res) {
res.sendFile(`node_modules/openpgp/dist/openpgp.min.js`, { root: `${__dirname}/../` }) res.sendFile(`node_modules/openpgp/dist/openpgp.min.js`, { root: `${__dirname}/../` })
}); });

View file

@ -24,4 +24,5 @@ main.container.container--profile
| ). | ).
script(src='/static/openpgp.min.js') script(src='/static/openpgp.min.js')
script(src='/static/doip.js')
script(type='application/javascript' src='/static/scripts.js' charset='utf-8') script(type='application/javascript' src='/static/scripts.js' charset='utf-8')