Skip to content

Preact: handle modal and html popup messages#2567

Open
ISenseAura wants to merge 1 commit intosmogon:masterfrom
ISenseAura:bugfixesv29
Open

Preact: handle modal and html popup messages#2567
ISenseAura wants to merge 1 commit intosmogon:masterfrom
ISenseAura:bugfixesv29

Conversation

@ISenseAura
Copy link
Copy Markdown
Member

No description provided.

}
}
PS.alert(message.replace(/\|\|/g, '\n'));
PS.alert(message.replace(/^(\|modal\||\|html\||\|wide\|)/, "").replace(/\|\|/g, '\n'));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should these not be handled inside PS.alert?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

we can if we want
but i think its better that we keep this outside PS.alert
those prefixes are protocol stuff so handling them outside of the function keeps PS.alert simple, as it is just a helper function to show the given message in a popup.

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.

2 participants