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

Add special alert for throttled requests #11677

Merged
merged 2 commits into from
Aug 27, 2019

Conversation

ClearlyClaire
Copy link
Contributor

No description provided.

@@ -23,23 +25,29 @@ export function clearAlert() {
};
};

export function showAlert(title = messages.unexpectedTitle, message = messages.unexpectedMessage) {
export function showAlert(title = messages.unexpectedTitle, message = messages.unexpectedMessage, message_values = undefined) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is really no need for a default value if the default value is undefined, JavaScript doesn't care how many arguments you pass into a function, if you pass fewer the other ones are undefined.

@Gargron Gargron merged commit 81f864d into mastodon:master Aug 27, 2019
hiyuki2578 pushed a commit to ProjectMyosotis/mastodon that referenced this pull request Oct 2, 2019
* Add special alert for throttled requests

* Use an extra attribute instead of an array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants