diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 7e636e9da..ad90709ac 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -2,6 +2,8 @@ Users interested in contributing to this repository should read this document be # Running the Server +**Important:** Comment out lines 1-3 of [ip-filter.js](server\moderation\ip-filter.js) and add `const ips = [];` to that same file before running the server or you will get a MongoDB find error. + If you're interested in running the server locally or deploying a clone, please **contact me** on discord at [thedoge42](https://discord.com/users/298250592135020545) so I can give you (read-only) credentials to the MongoDB server. 1. Clone the repository and navigate to its root directory. diff --git a/client/404.html b/client/404.html index f8ab4d0ed..989c5fbf1 100644 --- a/client/404.html +++ b/client/404.html @@ -2,7 +2,8 @@ - + QBReader - Page Not Found + diff --git a/client/about/index.html b/client/about/index.html index 4bafd07f3..79b51c16c 100644 --- a/client/about/index.html +++ b/client/about/index.html @@ -2,7 +2,8 @@ - + QBReader - About + diff --git a/client/about/privacy-policy.html b/client/about/privacy-policy.html index 3a6e7e98d..f9df0bf8c 100644 --- a/client/about/privacy-policy.html +++ b/client/about/privacy-policy.html @@ -2,7 +2,8 @@ - + QBReader - About - Privacy Policy + diff --git a/client/about/standard-format.html b/client/about/standard-format.html index e018775e2..97d88f4ee 100644 --- a/client/about/standard-format.html +++ b/client/about/standard-format.html @@ -2,7 +2,8 @@ - + QBReader - About - Standard Format + diff --git a/client/about/terms-of-service.html b/client/about/terms-of-service.html index 75eda358f..be30972ee 100644 --- a/client/about/terms-of-service.html +++ b/client/about/terms-of-service.html @@ -2,7 +2,8 @@ - + QBReader - About - Terms of Service + diff --git a/client/about/tips.html b/client/about/tips.html index 05812ed64..eaf961f04 100644 --- a/client/about/tips.html +++ b/client/about/tips.html @@ -2,7 +2,8 @@ - + QBReader - About - Tips & Instructions + diff --git a/client/admin/category-reports/index.html b/client/admin/category-reports/index.html index 53e15aa47..8af0a3175 100644 --- a/client/admin/category-reports/index.html +++ b/client/admin/category-reports/index.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Category Reports + diff --git a/client/admin/geoword/category-stats.html b/client/admin/geoword/category-stats.html index b9907bcbf..aa409e8fe 100644 --- a/client/admin/geoword/category-stats.html +++ b/client/admin/geoword/category-stats.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Geoword - Category Stats + diff --git a/client/admin/geoword/compare.html b/client/admin/geoword/compare.html index d8e5aa059..cace60579 100644 --- a/client/admin/geoword/compare.html +++ b/client/admin/geoword/compare.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Geoword - Compare + diff --git a/client/admin/geoword/index.html b/client/admin/geoword/index.html index d41aacdff..8093d9d6a 100644 --- a/client/admin/geoword/index.html +++ b/client/admin/geoword/index.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Geoword + diff --git a/client/admin/geoword/invoice.html b/client/admin/geoword/invoice.html index e0d13ff41..090708bea 100644 --- a/client/admin/geoword/invoice.html +++ b/client/admin/geoword/invoice.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Geoword - Invoice + diff --git a/client/admin/geoword/leaderboard.html b/client/admin/geoword/leaderboard.html index 70e6b2b9f..dec6a70ac 100644 --- a/client/admin/geoword/leaderboard.html +++ b/client/admin/geoword/leaderboard.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Geoword - Leaderboard + diff --git a/client/admin/geoword/manage-payments.html b/client/admin/geoword/manage-payments.html index 7976ad7bf..582cbe36f 100644 --- a/client/admin/geoword/manage-payments.html +++ b/client/admin/geoword/manage-payments.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Geoword - Manage Payments + diff --git a/client/admin/geoword/protests.html b/client/admin/geoword/protests.html index 38c42c520..42c1e2497 100644 --- a/client/admin/geoword/protests.html +++ b/client/admin/geoword/protests.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Geoword - Protests + diff --git a/client/admin/geoword/stats.html b/client/admin/geoword/stats.html index ecdd2b4e2..24b2a84f6 100644 --- a/client/admin/geoword/stats.html +++ b/client/admin/geoword/stats.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Geoword - Stats + diff --git a/client/admin/index.html b/client/admin/index.html index 0fa949a97..b45e7bebd 100644 --- a/client/admin/index.html +++ b/client/admin/index.html @@ -2,7 +2,8 @@ - + QBReader - Admin + diff --git a/client/admin/leaderboard/index.html b/client/admin/leaderboard/index.html index 4cbc284e3..cf8ab315e 100644 --- a/client/admin/leaderboard/index.html +++ b/client/admin/leaderboard/index.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Leaderboard + diff --git a/client/admin/multiplayer/index.html b/client/admin/multiplayer/index.html index 82157e9ea..293a6b860 100644 --- a/client/admin/multiplayer/index.html +++ b/client/admin/multiplayer/index.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Multiplayer + diff --git a/client/admin/question-management/packet.html b/client/admin/question-management/packet.html index 5493c7d96..393cb4bfc 100644 --- a/client/admin/question-management/packet.html +++ b/client/admin/question-management/packet.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Question Management - Packet + diff --git a/client/admin/question-management/set.html b/client/admin/question-management/set.html index 9f465eca2..3df5ba3d3 100644 --- a/client/admin/question-management/set.html +++ b/client/admin/question-management/set.html @@ -2,7 +2,8 @@ - + QBReader - Admin - Question Management - Set + diff --git a/client/admin/user-management/email.html b/client/admin/user-management/email.html index c8d0c0f35..89e3cfc6a 100644 --- a/client/admin/user-management/email.html +++ b/client/admin/user-management/email.html @@ -2,7 +2,8 @@ - + QBReader - Admin - User Management - Email + diff --git a/client/db/backups.html b/client/db/backups.html index a326de4ec..8a013f265 100644 --- a/client/db/backups.html +++ b/client/db/backups.html @@ -2,7 +2,8 @@ - + QBReader - Database - Backups + diff --git a/client/db/bonus/index.html b/client/db/bonus/index.html index 47657ce5b..1edf0b9f7 100644 --- a/client/db/bonus/index.html +++ b/client/db/bonus/index.html @@ -2,7 +2,8 @@ - + QBReader - Database - Bonuses + diff --git a/client/db/frequency-list/index.html b/client/db/frequency-list/index.html index e835f1e7d..98f0b0e78 100644 --- a/client/db/frequency-list/index.html +++ b/client/db/frequency-list/index.html @@ -2,7 +2,8 @@ - + QBReader - Database - Frequency List + diff --git a/client/db/frequency-list/subcategory.html b/client/db/frequency-list/subcategory.html index 6fe5d96fc..440a8b54b 100644 --- a/client/db/frequency-list/subcategory.html +++ b/client/db/frequency-list/subcategory.html @@ -2,7 +2,8 @@ - + QBReader - Database - Frequency List - Subcategory + diff --git a/client/db/index.html b/client/db/index.html index 8e6ec63f2..2befee18f 100644 --- a/client/db/index.html +++ b/client/db/index.html @@ -2,7 +2,8 @@ - + QBReader - Database + diff --git a/client/db/packet/index.html b/client/db/packet/index.html index da629fc17..116ae166b 100644 --- a/client/db/packet/index.html +++ b/client/db/packet/index.html @@ -2,7 +2,8 @@ - + QBReader - Database - Packet + diff --git a/client/db/set-list/index.html b/client/db/set-list/index.html index 484f031c3..2bbb9987a 100644 --- a/client/db/set-list/index.html +++ b/client/db/set-list/index.html @@ -2,7 +2,8 @@ - + QBReader - Database - Set List + diff --git a/client/db/set/index.html b/client/db/set/index.html index 6cc14b281..9484d19d6 100644 --- a/client/db/set/index.html +++ b/client/db/set/index.html @@ -2,7 +2,8 @@ - + QBReader - Database - Set + diff --git a/client/db/tossup/index.html b/client/db/tossup/index.html index 7e0852d93..06279cfc6 100644 --- a/client/db/tossup/index.html +++ b/client/db/tossup/index.html @@ -2,7 +2,8 @@ - + QBReader - Database - Tossups + diff --git a/client/head.html b/client/head.html index 11b1f4244..7c441e403 100644 --- a/client/head.html +++ b/client/head.html @@ -1,4 +1,4 @@ -QB Reader +QBReader diff --git a/client/index.html b/client/index.html index c728a8954..7bd3c48e1 100644 --- a/client/index.html +++ b/client/index.html @@ -2,7 +2,8 @@ - + QBReader - Home + diff --git a/client/play/bonuses/index.html b/client/play/bonuses/index.html index 2ecf2464a..c80dd4d26 100644 --- a/client/play/bonuses/index.html +++ b/client/play/bonuses/index.html @@ -2,7 +2,8 @@ - + QBReader - Play - Bonuses + diff --git a/client/play/geoword/confirmation.html b/client/play/geoword/confirmation.html index 9771bd591..573564329 100644 --- a/client/play/geoword/confirmation.html +++ b/client/play/geoword/confirmation.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Confirmation + diff --git a/client/play/geoword/division/index.html b/client/play/geoword/division/index.html index 235c68feb..df9d3331e 100644 --- a/client/play/geoword/division/index.html +++ b/client/play/geoword/division/index.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Division + diff --git a/client/play/geoword/game/index.html b/client/play/geoword/game/index.html index f36ddf2ee..be0e56552 100644 --- a/client/play/geoword/game/index.html +++ b/client/play/geoword/game/index.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Game + diff --git a/client/play/geoword/index.html b/client/play/geoword/index.html index 49cc814de..8cd0453ba 100644 --- a/client/play/geoword/index.html +++ b/client/play/geoword/index.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword + diff --git a/client/play/geoword/login.html b/client/play/geoword/login.html index 677b86c71..1face920a 100644 --- a/client/play/geoword/login.html +++ b/client/play/geoword/login.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Login + diff --git a/client/play/geoword/payment.html b/client/play/geoword/payment.html index 293588628..38ff59edc 100644 --- a/client/play/geoword/payment.html +++ b/client/play/geoword/payment.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Payment + diff --git a/client/play/geoword/results/category-stats.html b/client/play/geoword/results/category-stats.html index 4e5b2cb94..dc563b508 100644 --- a/client/play/geoword/results/category-stats.html +++ b/client/play/geoword/results/category-stats.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Results - Category Stats + diff --git a/client/play/geoword/results/compare.html b/client/play/geoword/results/compare.html index 620efde6e..39be331a9 100644 --- a/client/play/geoword/results/compare.html +++ b/client/play/geoword/results/compare.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Results - Compare + diff --git a/client/play/geoword/results/index.html b/client/play/geoword/results/index.html index 151800bf8..39575fab6 100644 --- a/client/play/geoword/results/index.html +++ b/client/play/geoword/results/index.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Results + diff --git a/client/play/geoword/results/leaderboard.html b/client/play/geoword/results/leaderboard.html index 35a70eaf5..e3828ff30 100644 --- a/client/play/geoword/results/leaderboard.html +++ b/client/play/geoword/results/leaderboard.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Results - Leaderboard + diff --git a/client/play/geoword/results/packet.html b/client/play/geoword/results/packet.html index 124f1d1dd..faa8b4bd9 100644 --- a/client/play/geoword/results/packet.html +++ b/client/play/geoword/results/packet.html @@ -2,7 +2,8 @@ - + QBReader - Play - Geoword - Results - Packet + diff --git a/client/play/index.html b/client/play/index.html index fcaf85170..86735759d 100644 --- a/client/play/index.html +++ b/client/play/index.html @@ -2,7 +2,8 @@ - + QBReader - Play + diff --git a/client/play/mp/index.html b/client/play/mp/index.html index 60570c4e1..3127f895d 100644 --- a/client/play/mp/index.html +++ b/client/play/mp/index.html @@ -2,7 +2,8 @@ - + QBReader - Play - Multiplayer + diff --git a/client/play/mp/room.html b/client/play/mp/room.html index bcef3026b..f0f12efd8 100644 --- a/client/play/mp/room.html +++ b/client/play/mp/room.html @@ -2,7 +2,8 @@ - + QBReader - Play - Multiplayer Room + diff --git a/client/play/tossups/index.html b/client/play/tossups/index.html index bf1901713..46acf1a21 100644 --- a/client/play/tossups/index.html +++ b/client/play/tossups/index.html @@ -2,7 +2,8 @@ - + QBReader - Play - Tossups + diff --git a/client/settings/index.html b/client/settings/index.html index 070441a88..ba604aea0 100644 --- a/client/settings/index.html +++ b/client/settings/index.html @@ -2,7 +2,8 @@ - + QBReader - Settings + diff --git a/client/tools/api-docs/bonus.html b/client/tools/api-docs/bonus.html index e9c3df1f8..83fcea404 100644 --- a/client/tools/api-docs/bonus.html +++ b/client/tools/api-docs/bonus.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Bonus + diff --git a/client/tools/api-docs/check-answer.html b/client/tools/api-docs/check-answer.html index 00dad5d42..b1f8de810 100644 --- a/client/tools/api-docs/check-answer.html +++ b/client/tools/api-docs/check-answer.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Check Answer + diff --git a/client/tools/api-docs/frequency-list.html b/client/tools/api-docs/frequency-list.html index 0c1a585e9..635a6060e 100644 --- a/client/tools/api-docs/frequency-list.html +++ b/client/tools/api-docs/frequency-list.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Frequency List + diff --git a/client/tools/api-docs/index.html b/client/tools/api-docs/index.html index d4c383301..8297e29e3 100644 --- a/client/tools/api-docs/index.html +++ b/client/tools/api-docs/index.html @@ -2,7 +2,8 @@ - + QBReader - API Docs + diff --git a/client/tools/api-docs/multiplayer/room-list.html b/client/tools/api-docs/multiplayer/room-list.html index 32e6da41b..3194c314d 100644 --- a/client/tools/api-docs/multiplayer/room-list.html +++ b/client/tools/api-docs/multiplayer/room-list.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Multiplayer Room List + diff --git a/client/tools/api-docs/num-packets.html b/client/tools/api-docs/num-packets.html index 69a3ddbda..5270c2146 100644 --- a/client/tools/api-docs/num-packets.html +++ b/client/tools/api-docs/num-packets.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Number of Packets + diff --git a/client/tools/api-docs/packet.html b/client/tools/api-docs/packet.html index 63c813196..d57ae52a6 100644 --- a/client/tools/api-docs/packet.html +++ b/client/tools/api-docs/packet.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Packet + diff --git a/client/tools/api-docs/query.html b/client/tools/api-docs/query.html index 68d03428a..210e6c9b9 100644 --- a/client/tools/api-docs/query.html +++ b/client/tools/api-docs/query.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Query + diff --git a/client/tools/api-docs/question-stats/bonus.html b/client/tools/api-docs/question-stats/bonus.html index 19a1a34e5..9da4f8f8d 100644 --- a/client/tools/api-docs/question-stats/bonus.html +++ b/client/tools/api-docs/question-stats/bonus.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Question Stats - Bonus + diff --git a/client/tools/api-docs/question-stats/tossup.html b/client/tools/api-docs/question-stats/tossup.html index 5c72fb2ab..0bb9ab852 100644 --- a/client/tools/api-docs/question-stats/tossup.html +++ b/client/tools/api-docs/question-stats/tossup.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Question Stats - Tossup + diff --git a/client/tools/api-docs/random-bonus.html b/client/tools/api-docs/random-bonus.html index 2efe10ce1..9761de0b2 100644 --- a/client/tools/api-docs/random-bonus.html +++ b/client/tools/api-docs/random-bonus.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Random Bonus + diff --git a/client/tools/api-docs/random-name.html b/client/tools/api-docs/random-name.html index 915bc3735..50c84b6d1 100644 --- a/client/tools/api-docs/random-name.html +++ b/client/tools/api-docs/random-name.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Random Name + diff --git a/client/tools/api-docs/random-tossup.html b/client/tools/api-docs/random-tossup.html index 03d6f0cf6..0f78c34cb 100644 --- a/client/tools/api-docs/random-tossup.html +++ b/client/tools/api-docs/random-tossup.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Random Tossup + diff --git a/client/tools/api-docs/report-question.html b/client/tools/api-docs/report-question.html index 6bef04167..918ca4662 100644 --- a/client/tools/api-docs/report-question.html +++ b/client/tools/api-docs/report-question.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Report Question + diff --git a/client/tools/api-docs/schemas/index.html b/client/tools/api-docs/schemas/index.html index 1b81bf0d4..d9f3d3627 100644 --- a/client/tools/api-docs/schemas/index.html +++ b/client/tools/api-docs/schemas/index.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Schemas + diff --git a/client/tools/api-docs/set-list.html b/client/tools/api-docs/set-list.html index 4e0b53b24..bdea99807 100644 --- a/client/tools/api-docs/set-list.html +++ b/client/tools/api-docs/set-list.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Set List + diff --git a/client/tools/api-docs/tossup.html b/client/tools/api-docs/tossup.html index 7626ba94f..88433b1a3 100644 --- a/client/tools/api-docs/tossup.html +++ b/client/tools/api-docs/tossup.html @@ -2,7 +2,8 @@ - + QBReader - API Docs - Tossup + diff --git a/client/tools/packet-parser/index.html b/client/tools/packet-parser/index.html index ed2655bc1..d737f5561 100644 --- a/client/tools/packet-parser/index.html +++ b/client/tools/packet-parser/index.html @@ -2,7 +2,8 @@ - + QBReader - Packet Parser + diff --git a/client/tools/packet-viewer/index.html b/client/tools/packet-viewer/index.html index 9b00d6769..ff9545ab8 100644 --- a/client/tools/packet-viewer/index.html +++ b/client/tools/packet-viewer/index.html @@ -2,7 +2,8 @@ - + QBReader - Packet Viewer + diff --git a/client/tools/tb-splitter/index.html b/client/tools/tb-splitter/index.html index 89df76771..0ab5a23ad 100644 --- a/client/tools/tb-splitter/index.html +++ b/client/tools/tb-splitter/index.html @@ -2,7 +2,8 @@ - + QBReader - TB Splitter + diff --git a/client/user/edit-password.html b/client/user/edit-password.html index f508cf5d9..4a267e181 100644 --- a/client/user/edit-password.html +++ b/client/user/edit-password.html @@ -2,7 +2,8 @@ - + QBReader - User - Edit Password + diff --git a/client/user/edit-profile.html b/client/user/edit-profile.html index 11bef8a1d..0a9c2a6f6 100644 --- a/client/user/edit-profile.html +++ b/client/user/edit-profile.html @@ -2,7 +2,8 @@ - + QBReader - User - Edit Profile + diff --git a/client/user/forgot-password.html b/client/user/forgot-password.html index ffb169467..1375b5c3a 100644 --- a/client/user/forgot-password.html +++ b/client/user/forgot-password.html @@ -2,7 +2,8 @@ - + QBReader - User - Forgot Password + diff --git a/client/user/index.html b/client/user/index.html index d9bb4a5db..6513b9d6c 100644 --- a/client/user/index.html +++ b/client/user/index.html @@ -2,7 +2,8 @@ - + QBReader - User + diff --git a/client/user/login.html b/client/user/login.html index abfea8459..b7e5dd0b8 100644 --- a/client/user/login.html +++ b/client/user/login.html @@ -2,7 +2,8 @@ - + QBReader - User - Login + diff --git a/client/user/reset-password.html b/client/user/reset-password.html index 5653b41a8..57ef513e5 100644 --- a/client/user/reset-password.html +++ b/client/user/reset-password.html @@ -2,7 +2,8 @@ - + QBReader - User - Reset Password + diff --git a/client/user/signup.html b/client/user/signup.html index a3174c16d..c7b5654a5 100644 --- a/client/user/signup.html +++ b/client/user/signup.html @@ -2,7 +2,8 @@ - + QBReader - User - Sign Up + diff --git a/client/user/stars/bonuses.html b/client/user/stars/bonuses.html index f36df97a8..e0a1db3d6 100644 --- a/client/user/stars/bonuses.html +++ b/client/user/stars/bonuses.html @@ -2,7 +2,8 @@ - + QBReader - User - Starred Bonuses + diff --git a/client/user/stars/tossups.html b/client/user/stars/tossups.html index 4717ca8f8..d3ca077e4 100644 --- a/client/user/stars/tossups.html +++ b/client/user/stars/tossups.html @@ -2,7 +2,8 @@ - + QBReader - User - Starred Tossups + diff --git a/client/user/stats/bonus/graph.html b/client/user/stats/bonus/graph.html index 791a6da3a..9bc7d80d5 100644 --- a/client/user/stats/bonus/graph.html +++ b/client/user/stats/bonus/graph.html @@ -2,7 +2,8 @@ - + QBReader - User - Bonus Stats - Graph + diff --git a/client/user/stats/bonus/index.html b/client/user/stats/bonus/index.html index 343781a4b..229b79089 100644 --- a/client/user/stats/bonus/index.html +++ b/client/user/stats/bonus/index.html @@ -2,7 +2,8 @@ - + QBReader - User - Bonus Stats + diff --git a/client/user/stats/tossup/graph.html b/client/user/stats/tossup/graph.html index e10f5a395..bda12672a 100644 --- a/client/user/stats/tossup/graph.html +++ b/client/user/stats/tossup/graph.html @@ -2,7 +2,8 @@ - + QBReader - User - Tossup Stats - Graph + diff --git a/client/user/stats/tossup/index.html b/client/user/stats/tossup/index.html index 846d9dc26..82679e8f0 100644 --- a/client/user/stats/tossup/index.html +++ b/client/user/stats/tossup/index.html @@ -2,7 +2,8 @@ - + QBReader - User - Tossup Stats + diff --git a/client/user/verify-failed.html b/client/user/verify-failed.html index db6daea73..4722e5815 100644 --- a/client/user/verify-failed.html +++ b/client/user/verify-failed.html @@ -2,7 +2,8 @@ - + QBReader - User - Email Verification Failed + diff --git a/routes/db/bonus.js b/routes/db/bonus.js index 220a40c3c..b13ccdcc7 100644 --- a/routes/db/bonus.js +++ b/routes/db/bonus.js @@ -10,7 +10,7 @@ const router = Router(); const head = fs.readFileSync('./client/head.html', 'utf8'); const nav = fs.readFileSync('./client/nav/index.html', 'utf8'); const file = fs.readFileSync('./client/db/bonus/index.html', 'utf8') - .replace('', head) + .replace('', head) .replace('', nav); function removeParentheses (answer) { diff --git a/routes/db/tossup.js b/routes/db/tossup.js index 0dddf63f2..47003840d 100644 --- a/routes/db/tossup.js +++ b/routes/db/tossup.js @@ -10,7 +10,7 @@ const router = Router(); const head = fs.readFileSync('./client/head.html', 'utf8'); const nav = fs.readFileSync('./client/nav/index.html', 'utf8'); const file = fs.readFileSync('./client/db/tossup/index.html', 'utf8') - .replace('', head) + .replace('', head) .replace('', nav); function removeParentheses (answer) { diff --git a/routes/include-virtual-middleware.js b/routes/include-virtual-middleware.js index 21c757d7e..5dd9e035b 100644 --- a/routes/include-virtual-middleware.js +++ b/routes/include-virtual-middleware.js @@ -12,7 +12,7 @@ export default function (req, res, next) { if (!filePath.startsWith(path.resolve('./client'))) { return next(); } fs.readFile(filePath, 'utf8', (err, data) => { if (err) return next(); - data = data.replace('', head); + data = data.replace('', head); data = data.replace('', nav); res.send(data); }); diff --git a/routes/play/mp.js b/routes/play/mp.js index 16f57fbc7..eb06bb687 100644 --- a/routes/play/mp.js +++ b/routes/play/mp.js @@ -7,7 +7,7 @@ const head = fs.readFileSync('./client/head.html', 'utf8'); const nav = fs.readFileSync('./client/nav/index.html', 'utf8'); const room = fs.readFileSync('./client/play/mp/room.html', 'utf8') .replace('', nav) - .replace('', head); + .replace('', head); // only match paths that don't have a file extension router.get(/^\/[^.]+$/, (_req, res) => {