Skip to content

FIX: Compatibility with latest Discourse#5

Open
OsamaSayegh wants to merge 1 commit into
Daemonite:masterfrom
OsamaSayegh:patch-1
Open

FIX: Compatibility with latest Discourse#5
OsamaSayegh wants to merge 1 commit into
Daemonite:masterfrom
OsamaSayegh:patch-1

Conversation

@OsamaSayegh

Copy link
Copy Markdown

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
Copy Markdown

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