Integrate with Zopim chat
-
Anyone know how to integrate zopim chat into my app?
<!--Start of Zendesk Chat Script--> <script type="text/javascript"> window.$zopim||(function(d,s){var z=$zopim=function(c){z..push(c)},$=z.s= d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. .push(o)};z.=[];z.set.=[];$.async=!0;$.setAttribute("charset","utf-8"); $.src="https://v2.zopim.com/?4GnUbuazLO8z9MC09PDRe1PJRVjUyenQ%22;z.t=+new Date;$. type="text/javascript";e.parentNode.insertBefore($,e)})(document,"script"); </script> <!--End of Zendesk Chat Script-->
-
Create a plugin.
-
How would I do that? I would just like to add this code in my html:
<script type="text/javascript"> window.$zopim||(function(d,s){var z=$zopim=function(c){z..push(c)},$=z.s= d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. .push(o)};z.=[];z.set.=[];$.async=!0;$.setAttribute("charset","utf-8"); $.src="https://v2.zopim.com/?4GnUbuazLO8z9MC09PDRe1PJRVjUyenQ%22;z.t=+new Date;$. type="text/javascript";e.parentNode.insertBefore($,e)})(document,"script"); </script>
-
@dwms You can read about plugins here.
https://quasar-framework.org/guide/app-plugins.html
You could just add that code to index.html at the project root but I would not recommend that, as @Hawkeye64 said just use plugin for that.