Skip to content

Commit

Permalink
fix: spamming logs with 'wallabag_keyboard_shortcut' not set
Browse files Browse the repository at this point in the history
Closes #7
  • Loading branch information
Joedmin committed Nov 23, 2024
1 parent 5121693 commit 3116de4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Controllers/wallabagButtonController.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ public function jsVarsAction(): void
$extension = Minz_ExtensionManager::findExtension('Wallabag Button');
$this->view->wallabag_button_vars = json_encode(array(
'instance_url' => FreshRSS_Context::userConf()->attributeString('wallabag_instance_url'),
'keyboard_shortcut' => FreshRSS_Context::userConf()->attributeString('wallabag_keyboard_shortcut'),
'keyboard_shortcut' => FreshRSS_Context::userConf()->hasParam("wallabag_keyboard_shortcut") ?
FreshRSS_Context::userConf()->attributeString('wallabag_keyboard_shortcut')
: '',
'icons' => array(
'added_to_wallabag' => $extension->getFileUrl('added_to_wallabag.svg', 'svg'),
),
Expand Down

0 comments on commit 3116de4

Please sign in to comment.