Skip to content

Commit

Permalink
remove debugging and change search.js to main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hwgilbert16 committed Jun 29, 2021
1 parent 477ef4f commit 8264e23
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/search.js → public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $('#search').submit((e) => {
$(document).ajaxError((e) => {
console.log('Error encountered');
console.log(e);
})
});

function whileLoading() {
// remove previous rendered data if it exists
Expand Down
1 change: 0 additions & 1 deletion routes/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ router.post('/', (req, res) => {
for (let i = 0; i < qualityOptionsRaw.length; i++) {
// filter response to only include mimeType and qualityLabel
const filtered = filterObject(qualityOptionsRaw[i], ['mimeType', 'qualityLabel', 'itag']);
console.log(filtered.mimeType);

// check if it is mp4
if (filtered.mimeType.includes('video/mp4') || filtered.mimeType.includes('av01')) {
Expand Down
2 changes: 1 addition & 1 deletion views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ html
div(id="options")
ul(id="qualityList")
script(src="https://code.jquery.com/jquery-3.6.0.min.js")
script(src="search.js")
script(src="main.js")

0 comments on commit 8264e23

Please sign in to comment.