mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Replace document.origin with window.location.origin
document.origin is not a thing on firefox
This commit is contained in:
parent
e26c3f3dc9
commit
53528f338a
@ -337,7 +337,7 @@ module.exports = React.createClass({
|
||||
if (this.context.appConfig && this.context.appConfig.cross_origin_renderer_url) {
|
||||
renderer_url = this.context.appConfig.cross_origin_renderer_url;
|
||||
}
|
||||
renderer_url += "?origin=" + encodeURIComponent(document.origin);
|
||||
renderer_url += "?origin=" + encodeURIComponent(window.location.origin);
|
||||
return (
|
||||
<span className="mx_MFileBody">
|
||||
<div className="mx_MFileBody_download">
|
||||
|
Loading…
Reference in New Issue
Block a user