Skip to content

Unable to include live helper chat widget #42

@PeopleInside

Description

@PeopleInside

Issue description:

Unable to setup live chat helper widget on NextCloud

Steps to reproduce

I'm trying to intall my live helper chat widget.
A demo embed code is here:

<script>var LHC_API = LHC_API||{};
LHC_API.args = {mode:'widget',lhc_base_url:'//demo.livehelperchat.com/',wheight:450,wwidth:350,pheight:520,pwidth:500,leaveamessage:true,check_messages:false};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.setAttribute('crossorigin','anonymous'); po.async = true;
var date = new Date();po.src = '//demo.livehelperchat.com/design/defaulttheme/js/widgetv2/index.js?'+(""+date.getFullYear() + date.getMonth() + date.getDate());
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>

I removed the <script></script> indicator and paste the code into your app.
As cript external domain I inserted demo.livehelperchat.com then saved.

Expected behaviour

See the live chat widget on Nextcloud pages

Actual behaviour

No live chat widget, no error on browser developer console

The embed code is generated by the demo page https://livehelperchat.com/demo-12c.html
If you wanna test the embed code you can paste them here: https://htmledit.squarefree.com/ it works.

Server configuration

Web server: Apache

Database: Maria

PHP version: 8.4

Nextcloud version: (see Nextcloud admin page)
32.0.3

List of activated apps
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Browser

Browser name: Brave

Browser version: 1.85.118

Operating system: Ubuntu 24 LTS

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions