Skip to content

Commit

Permalink
updated to be compatible with pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinGodell committed Mar 12, 2018
1 parent 6ce331b commit 91f0e51
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"views/**/*",
"public/**/*",
"node_modules/material-design-icons/iconfont/**/*",
"node_modules/material-design-lite/dist/**/*"
"node_modules/material-design-lite/dist/material.deep_orange-blue.min.css",
"node_modules/material-design-lite/dist/material.min.js"
]
}
}
15 changes: 15 additions & 0 deletions routes/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const path = require('path');
const flvMinJs = path.join(__dirname, '../node_modules/flv.js/dist/flv.min.js');
const flvMinJsMap = path.join(__dirname, '../node_modules/flv.js/dist/flv.min.js.map');
const hlsMinJs = path.join(__dirname, '../node_modules/hls.js/dist/hls.min.js');
//const materialMinJs = path.join(__dirname, '../node_modules/material-design-lite/dist/material.min.js');
//const materialDeepOrangeBlueMinCss = path.join(__dirname, '../node_modules/material-design-lite/dist/material.deep_orange-blue.min.css');
//const materialMinJsMap = path.join(__dirname, '../node_modules/material-design-lite/dist/material.min.js.map');

router.get('/', (req, res) => {
res.send('assets router');
Expand All @@ -24,4 +27,16 @@ router.get('/hls.min.js', (req, res) => {
res.sendFile(hlsMinJs);
});

/*router.get('/material.min.js', (req, res) => {
res.sendFile(materialMinJs);
});
router.get('/material.min.js.map', (req, res) => {
res.sendFile(materialMinJsMap);
});
router.get('/material.deep_orange-blue.min.css', (req, res) => {
res.sendFile(materialDeepOrangeBlueMinCss);
});*/

module.exports = router;
2 changes: 1 addition & 1 deletion views/install.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
message.innerText = 'Socket Connection failed.';
});
installSocket.on('disconnect', () => {
message.innerText = 'Socket Disconnect.';
//message.innerText = 'Socket Disconnect.';
});
installSocket.on('error', () => {
message.innerText = 'Socket Error.';
Expand Down

0 comments on commit 91f0e51

Please sign in to comment.