Skip to content

Livechat widget broken in legacy browsers #12864

@edurenye

Description

@edurenye

Description:

When I enter a page with the livechat widget active in ie11, I get the following error:
SCRIPT1002: Syntax error
File: livechat.js, Line: 27, Column: 289

I went to that line and expanded it, it contains the following (I put a mark in the error placement):

!function() {
	var e = Package.meteor.Meteor, o = Package.meteor.global, t = Package.meteor.meteorEnv,
		s = Package.modules.meteorInstall, a = Package['babel-runtime'].meteorBabelHelpers, r = Package.promise.Promise,
		n, c, l = s({
			node_modules: {
				meteor: {
					webapp: {
						'webapp_client.js': function(e, o, t) {
							t.export({ WebApp: () => s }); <- The error happens here in the '()'
							const s = { _isCssLoaded: () => 0 === document.styleSheets.length || Array.prototype.find.call(document.styleSheets, e => e.cssText && !e.cssRules ? !e.cssText.match(/meteor-css-not-found-error/) : !Array.prototype.find.call(e.cssRules, e => '.meteor-css-not-found-error' === e.selectorText)) };
						},
					},
				},
			},
		}, { extensions: ['.js', '.json'] })('/node_modules/meteor/webapp/webapp_client.js');
	Package._define('webapp', l, { WebApp: void 0 });
}();

Expected behavior:

It works in other browsers so it should work here also.

Actual behavior:

The widget is not rendered due to the error.

Server Setup Information:

  • Version of Rocket.Chat Server: 0.72.0
  • Operating System: linux
  • Deployment Method: tar and docker
  • Number of Running Instances: 1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions