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

Commit 27b7dac

Browse files
committed
Replace document.origin with window.location.origin
document.origin is not a thing on firefox
1 parent 78d836e commit 27b7dac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/messages/MFileBody.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ module.exports = React.createClass({
337337
if (this.context.appConfig && this.context.appConfig.cross_origin_renderer_url) {
338338
renderer_url = this.context.appConfig.cross_origin_renderer_url;
339339
}
340-
renderer_url += "?origin=" + encodeURIComponent(document.origin);
340+
renderer_url += "?origin=" + encodeURIComponent(window.location.origin);
341341
return (
342342
<span className="mx_MFileBody">
343343
<div className="mx_MFileBody_download">

0 commit comments

Comments
 (0)