Archived
1
Fork 0

Update name

This commit is contained in:
Korbs 2023-11-06 02:13:15 -05:00
parent a6c089c557
commit 7e7e53720e
No known key found for this signature in database

View file

@ -23,8 +23,8 @@ npm install plyx-player
### HTML5
Add the stylesheet and script:
```html
<link rel="stylesheet" href="/node_modules/@sudovanilla/plyx-player/src/styles/app.css">
<script src="/node_modules/@sudovanilla/plyx-player/src/index.js" type="module"></script>
<link rel="stylesheet" href="/node_modules/plyx-player/src/styles/app.css">
<script src="/node_modules/plyx-player/src/index.js" type="module"></script>
```
Also add the Font Awesome that the Pylx uses:
@ -50,7 +50,7 @@ ___
### Express
Route the files required for Pylx Player to work in Express (Tested with PokeTube):
```
const PylxDirectory = "./node_modules/@sudovanilla/plyx-player"
const PylxDirectory = "./node_modules/plyx-player"
module.exports = function (app, config, renderTemplate) {
app.get("/player/index.js", function (req, res) {res.sendFile("/src/index.js", { root: PylxDirectory })})
app.get("/player/index.css", function (req, res) {res.sendFile("/src/styles/app.css", { root: PylxDirectory })})