Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Commit 9438be0

Browse files
committed
fix(discourse) Invalid prop type in embed code.
The `discourseEmbedUrl` must be a string and window.location is a Location object. In the latest firefox versions, I got the following error : ``` TypeError: DE.discourseEmbedUrl.indexOf is not a function embed.js:14:9 ```
1 parent f257949 commit 9438be0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Overlays/Article.xyl

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<script type="text/javascript">
2929
DiscourseEmbed = {
3030
discourseUrl : 'https://proxy-discourse.hoa-project.net/',
31-
discourseEmbedUrl: window.location
31+
discourseEmbedUrl: window.location.toString()
3232
};
3333

3434
(

0 commit comments

Comments
 (0)