Skip to content

Commit

Permalink
Merge pull request RocketChat#424 from Shailesh351/sb_fix_skip_reg
Browse files Browse the repository at this point in the history
Add parentURL in Livechat Widget Installation Script
  • Loading branch information
ear-dev authored Oct 20, 2020
2 parents f1efede + 3608fdb commit b9867cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/omnichannel/installation/Installation.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Installation = () => {
const installString = `<!-- Start of Rocket.Chat Livechat Script -->
<script type="text/javascript">
(function(w, d, s, u) {
w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u;
w.RocketChat = function(c) { w.RocketChat._.push(c) }; w.RocketChat._ = []; w.RocketChat.url = u; w.RocketChat.parentURL = w.location.href;
var h = d.getElementsByTagName(s)[0], j = d.createElement(s);
j.async = true; j.src = '${ siteUrl }/livechat/rocketchat-livechat.min.js?_=201903270000';
h.parentNode.insertBefore(j, h);
Expand Down

0 comments on commit b9867cf

Please sign in to comment.