Skip to content

Commit

Permalink
Fix rssurlrewrite plugin
Browse files Browse the repository at this point in the history
Resolves regression with version 4.1 causing the RSS menu not to display.
  • Loading branch information
stickz committed Apr 27, 2023
1 parent 6a13de7 commit 2c3fd59
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/rssurlrewrite/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,14 @@ if(plugin.canChangeMenu())
plugin.createRSSMenuPrim = theWebUI.createRSSMenuPrim;
theWebUI.createRSSMenuPrim = function()
{
plugin.createRSSMenuPrim.call(this);
if(plugin.enabled)
{
var el = theContextMenu.get( theUILang.rssMenuManager );
if( el )
theContextMenu.add( el, [theUILang.rssRulesManager, "theWebUI.showRules()"] );
let entries = plugin.createRSSMenuPrim.call(this);
entries.push([CMENU_SEP]);
entries.push([theUILang.rssRulesManager, "theWebUI.showRules()"]);
return entries;
}
return plugin.createRSSMenuPrim.call(this);
}

theWebUI.showURLInfo = function(id)
Expand Down

0 comments on commit 2c3fd59

Please sign in to comment.