Commit 0a28e7aa authored by JC Brand's avatar JC Brand

Fixes #1027 Backwards compatibility fix for IE11

parent 34ac7e99
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
- Avoid `eval` (via `_.template` from lodash). - Avoid `eval` (via `_.template` from lodash).
- Don't show bookmark toggles when PEP bookmarking not supported by the XMPP server. - Don't show bookmark toggles when PEP bookmarking not supported by the XMPP server.
- Add LibreJS support
### Bugfixes ### Bugfixes
...@@ -12,6 +11,7 @@ ...@@ -12,6 +11,7 @@
- Bookmarks list and open rooms list weren't recreated after logging in for a 2nd time (without reloading the browser). - Bookmarks list and open rooms list weren't recreated after logging in for a 2nd time (without reloading the browser).
- #1024 null reference on MUC Invite - #1024 null reference on MUC Invite
- #1025 OTR lock icon disappears - #1025 OTR lock icon disappears
- #1027 `new Event` not supported in IE11
## 3.3.3 (2018-02-14) ## 3.3.3 (2018-02-14)
......
...@@ -2051,6 +2051,6 @@ ...@@ -2051,6 +2051,6 @@
'utils': u 'utils': u
} }
}; };
window.dispatchEvent(new Event('converse-loaded')); window.dispatchEvent(new CustomEvent('converse-loaded'));
return window.converse; return window.converse;
})); }));
function CustomEvent ( event, params ) {
params = params || { bubbles: false, cancelable: false, detail: undefined };
var evt = document.createEvent( 'CustomEvent' );
evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail );
return evt;
}
if ( typeof window.CustomEvent !== "function" ) {
CustomEvent.prototype = window.Event.prototype;
window.CustomEvent = CustomEvent;
}
if (!String.prototype.includes) { if (!String.prototype.includes) {
String.prototype.includes = function(search, start) { String.prototype.includes = function(search, start) {
'use strict'; 'use strict';
......
...@@ -4,15 +4,15 @@ ...@@ -4,15 +4,15 @@
<head> <head>
<title>Converse.js Tests</title> <title>Converse.js Tests</title>
<meta name="description" content="Converse.js: A chat client for your website" /> <meta name="description" content="Converse.js: A chat client for your website" />
<link rel="shortcut icon" type="image/png" href="node_modules/jasmine-core/images/jasmine_favicon.png"> <link rel="shortcut icon" type="image/png" href="../node_modules/jasmine-core/images/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" media="screen" href="node_modules/jasmine-core/lib/jasmine-core/jasmine.css"> <link rel="stylesheet" type="text/css" media="screen" href="../node_modules/jasmine-core/lib/jasmine-core/jasmine.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/jasmine.css"> <link rel="stylesheet" type="text/css" media="screen" href="../css/jasmine.css">
<link type="text/css" rel="stylesheet" media="screen" href="css/theme.css" /> <link type="text/css" rel="stylesheet" media="screen" href="../css/theme.css" />
<link type="text/css" rel="stylesheet" media="screen" href="css/converse.css" /> <link type="text/css" rel="stylesheet" media="screen" href="../css/converse.css" />
<script src="src/config.js"></script> <script src="../src/config.js"></script>
<script data-main="tests/runner-transpiled" src="node_modules/requirejs/require.js"></script> <script data-main="runner-transpiled" src="../node_modules/requirejs/require.js"></script>
<style> <style>
.tests-brand-heading { .tests-brand-heading {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment