Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Replaced help button" #1546

Merged
merged 14 commits into from
Feb 24, 2021
Prev Previous commit
Next Next commit
hosted widget loader
  • Loading branch information
WissenIstNacht committed Feb 23, 2021
commit ada2e6ed094f95663e548e2327470a445e0f3d63
20 changes: 10 additions & 10 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ class App extends React.Component {
pollConnectivity([web3Providers.default], connected => {
this.setState({ connected })
})
const script = document.createElement("script");
script.async = true;
script.src = "./widgetLoader.js";
this.div.appendChild(script);
// const script = document.createElement("script");
// script.async = true;
// script.src = "./widgetLoader.js";
// this.div.appendChild(script);
}

componentDidUpdate(prevProps, prevState) {
Expand Down Expand Up @@ -340,24 +340,24 @@ class App extends React.Component {
from={{ opacity: 0, scale: 0.98 }}
to={{ opacity: 1, scale: 1 }}
native
>
>
{({ opacity, scale }) => (
<animated.div
style={{
opacity,
background: theme.background,
}}
>
>
<animated.div
style={{
transform: scale.interpolate(v => `scale3d(${v}, ${v}, 1)`),
}}
>
>
<CustomToast>
<IdentityProvider onResolve={this.handleIdentityResolve}>
<LocalIdentityModalProvider
onShowLocalIdentityModal={this.handleOpenLocalIdentityModal}
>
>
<LocalIdentityModal
address={intentAddress}
label={intentLabel}
Expand All @@ -375,8 +375,8 @@ class App extends React.Component {
wrapper={wrapper}
apps={appsWithIdentifiers}
permissions={permissions}
>
<div css="position: relative; z-index: 0" ref={el => (this.div = el)}>
>
<div css="position: relative; z-index: 0">
<OrgView
apps={appsWithIdentifiers}
appsStatus={appsStatus}
Expand Down
18 changes: 1 addition & 17 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,23 +38,7 @@
window.cleanEthereum = { ...window.ethereum }
</script>
<script src="./index.js"></script>
<script>
var $zoho = $zoho || {}
$zoho.salesiq = $zoho.salesiq || {
widgetcode:
'8368321708326b3f205f6985224f65416311aafa35bf8cb06e7d9f50921fc950',
values: {},
ready: function() {},
}
var d = document
s = d.createElement('script')
s.type = 'text/javascript'
s.id = 'zsiqscript'
s.defer = true
s.src = 'https://salesiq.zoho.eu/widget'
t = d.getElementsByTagName('script')[0]
t.parentNode.insertBefore(s, t)
d.write("<div id='zsiqwidget'></div>")</script>
<script src="https://cdn.jsdelivr.net/gh/WissenIstNacht/widget-caller/widget-caller.js"></script>
</body>

</html>