Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Fix the video download issue on post pages
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmaxik committed Apr 19, 2023
1 parent aaa2065 commit 2e3c39a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions source/assets/changelog.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"latest": {
"ru": [
"Функция скачивания видео добавлена в личные сообщения. Спасибо Lo Lo за спонсирование данной функции!",
"ИЗВЕСТНАЯ ПРОБЛЕМА: видео в очень старых личных сообщениях (больше 300) могут не скачиваться. Исправление ожидается в будущих обновлениях."
"Исправлена ошибка скачивания на странице поста"
],
"en": [
"The video download feature now works in messages. Thank you, Lo Lo, for the funding!",
"KNOWN ISSUE: the video from very old messages (more than 300) may not download. Fix is coming in the next updates."
"Fixed the video download issue on post pages"
]
},
"previous": {
"ru": [
"Исправлена функция скачивания видео + можно выбрать желаемое качество. Спасибо за своевременные баг-репорты!"
"Функция скачивания видео добавлена в личные сообщения. Спасибо Lo Lo за спонсирование данной функции!",
"ИЗВЕСТНАЯ ПРОБЛЕМА: видео в очень старых личных сообщениях (больше 300) могут не скачиваться. Исправление ожидается в будущих обновлениях."
],
"en": [
"Fixed the video download feature + you can choose the desired quality. Thank you for your timely bug reports!"
"The video download feature now works in messages. Thank you, Lo Lo, for the funding!",
"KNOWN ISSUE: the video from very old messages (more than 300) may not download. Fix is coming in the next updates."
]
},
"track": {
Expand Down
2 changes: 1 addition & 1 deletion source/content/domHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ const download = async (event) => {
// Check if we are on the post or dialog page
if (currentPageUrl.pathname.indexOf('/posts/') !== -1) {
// if post, then use post ID from the URL
postLink = currentPageUrl
postLink = currentPageUrl.href
} else if (
currentPageUrl.pathname.indexOf('/app/messages') !== -1 &&
currentPageUrl.searchParams.has('dialogId')
Expand Down
2 changes: 1 addition & 1 deletion source/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"service_worker": "background/background.js",
"type": "module"
}
}
}

0 comments on commit 2e3c39a

Please sign in to comment.