Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom reload action for Browser Action #20

Closed
mohamedmansour opened this issue Dec 3, 2018 · 2 comments · Fixed by #36
Closed

Allow custom reload action for Browser Action #20

mohamedmansour opened this issue Dec 3, 2018 · 2 comments · Fixed by #36
Labels
feature request good first issue Great First Bug to contribute!
Milestone

Comments

@mohamedmansour
Copy link
Owner

Currently the reload strategy of the browser action is either all windows or current window. It would be nice to extend it so the user can customize it.

/**
 * Reload Routine. It checks which option the user has allowed (All windows, or
 * or just the current window) then initiates the request.
 */
ReloadController.prototype.reload = function(info, tab)
{
  if (this.cachedSettings.reloadAllWindows) { // All Windows.
    this.reloadAllWindows()
  }
  else { // Current Window.
    chrome.windows.getCurrent(this.reloadWindow.bind(this))
  }
}
@mohamedmansour
Copy link
Owner Author

Actually, its a bug, reloadAllWindows doesn't pass the options

@mohamedmansour
Copy link
Owner Author

mohamedmansour commented May 3, 2021

This is implemented in #32 !

@mohamedmansour mohamedmansour added the good first issue Great First Bug to contribute! label May 3, 2021
@mohamedmansour mohamedmansour added this to the v5.0.0 milestone May 3, 2021
mohamedmansour added a commit that referenced this issue May 4, 2021
In options set the action for a click on the menu icon (browser_action)

Fixes #20

Co-authored-by: Mohamed Mansour <hello@mohamedmansour.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request good first issue Great First Bug to contribute!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant