Skip to content

Commit

Permalink
Move changes from deleted Popular.js to Popular.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
kommunarr committed Nov 26, 2024
1 parent 304fa82 commit 532fcc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 112 deletions.
108 changes: 0 additions & 108 deletions src/renderer/views/Popular/Popular.js

This file was deleted.

8 changes: 4 additions & 4 deletions src/renderer/views/Popular/Popular.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import store from '../../store/index'
import { invidiousAPICall } from '../../helpers/api/invidious'
import { copyToClipboard, getRelativeTimeFromDate, setPublishedTimestampsInvidious, showToast } from '../../helpers/utils'
import { useI18n } from '../../composables/use-i18n-polyfill'
import { KeyboardShortcuts } from '../../../constants'
const { t } = useI18n()
Expand Down Expand Up @@ -107,10 +108,9 @@ function keyboardShortcutHandler(event) {
// https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat
if (event.repeat) { return }
switch (event.key) {
case 'r':
case 'R':
case 'F5':
switch (event.key.toLowerCase()) {
case 'f5':
case KeyboardShortcuts.APP.SITUATIONAL.REFRESH:
if (!isLoading.value) {
fetchPopularInfo()
}
Expand Down

0 comments on commit 532fcc7

Please sign in to comment.