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

FIX: Compatibility with latest Discourse #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OsamaSayegh
Copy link

As of discourse/discourse@cd24eff, Discourse now executes JavaScript inside <script type="text/discourse-plugin"> tags in strict mode. The minified JS inside this script tag doesn't work with strict mode enabled, but it also doesn't need to be of type "text/discourse-plugin". So to make the component work with latest Discourse, all we have to do is remove type="text/discourse-plugin" version="0.8" from the <script> tag and this PR does exactly that (the component still works with older versions of Discourse with this change.).

@LeoDavidson
Copy link

Would be great if this was accepted, since the component is broken now (but was better than the similar built-in functionality, IMO).

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