Skip to content

Commit

Permalink
fix legacy Android webview
Browse files Browse the repository at this point in the history
  • Loading branch information
josex2r committed May 6, 2019
1 parent be5bdbe commit ddbeab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/metrics-adapters/intercom.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export default BaseAdapter.extend({

if (canUseDOM) {
/* eslint-disable */
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',{});}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',{});}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;(function(){var s=d.createElement('script');s.type='text/javascript';s.async=true;
s.src=`https://widget.intercom.io/widget/${appId}`;
var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);} l(); }})()
var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);})(); }})()
/* eslint-enable */
}
},
Expand Down

0 comments on commit ddbeab2

Please sign in to comment.