diff --git a/package.json b/package.json index 13b0ea1..c89881e 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "dependencies": { "bent": "^7.3.12", + "dialog-polyfill": "^0.5.6", "doipjs": "^0.11.2", "dotenv": "^8.2.0", "express": "^4.17.1", diff --git a/routes/static.js b/routes/static.js index a990d7b..87326d2 100644 --- a/routes/static.js +++ b/routes/static.js @@ -36,6 +36,7 @@ router.get('/doip.min.js', function(req, res) { 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) { res.sendFile(`node_modules/openpgp/dist/openpgp.min.js`, { root: `${__dirname}/../` }) }); @@ -50,6 +51,13 @@ router.get('/qrcode.min.js.map', function(req, res) { res.sendFile(`node_modules/qrcode/build/qrcode.min.js.map`, { root: `${__dirname}/../` }) }); +router.get('/dialog-polyfill.js', function(req, res) { + res.sendFile(`node_modules/dialog-polyfill/dist/dialog-polyfill.js`, { root: `${__dirname}/../` }) +}); +router.get('/dialog-polyfill.css', function(req, res) { + res.sendFile(`node_modules/dialog-polyfill/dist/dialog-polyfill.css`, { root: `${__dirname}/../` }) +}); + router.use('/', express.static('static')); module.exports = router; diff --git a/yarn.lock b/yarn.lock index cfec009..ab9edf5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -851,6 +851,11 @@ detective@^5.2.0: defined "^1.0.0" minimist "^1.1.1" +dialog-polyfill@^0.5.6: + version "0.5.6" + resolved "https://registry.yarnpkg.com/dialog-polyfill/-/dialog-polyfill-0.5.6.tgz#7507b4c745a82fcee0fa07ce64d835979719599a" + integrity sha512-ZbVDJI9uvxPAKze6z146rmfUZjBqNEwcnFTVamQzXH+svluiV7swmVIGr7miwADgfgt1G2JQIytypM9fbyhX4w== + diffie-hellman@^5.0.0: version "5.0.3" resolved "https://registry.yarnpkg.com/diffie-hellman/-/diffie-hellman-5.0.3.tgz#40e8ee98f55a2149607146921c63e1ae5f3d2875"