Commit 31080bf2 authored by JC Brand's avatar JC Brand

Add a FormData polyfill for Edge comptaibility

Fixes #1220
parent 647f7cf3
# Changelog # Changelog
## 4.0.2 (2018-??-??) ## 4.0.2 (Unreleased)
- M4A and WEBM files when sent as XEP-0066 Out of Band Data, are now playable directly in chat - M4A and WEBM files when sent as XEP-0066 Out of Band Data, are now playable directly in chat
- #1220 Converse not working in Edge
## 4.0.1 (2018-09-19) ## 4.0.1 (2018-09-19)
......
This diff is collapsed.
...@@ -4225,6 +4225,12 @@ ...@@ -4225,6 +4225,12 @@
"samsam": "1.3.0" "samsam": "1.3.0"
} }
}, },
"formdata-polyfill": {
"version": "3.0.12",
"resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-3.0.12.tgz",
"integrity": "sha512-y5V1Y4e2VSJ29+CAHozJwN9BqvsigYicZp/MqeYP00X/UMah3cLb2ix7/58fLcaAjwr8HfztD7Ih/IQCW1BGfw==",
"dev": true
},
"fragment-cache": { "fragment-cache": {
"version": "0.2.1", "version": "0.2.1",
"resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz",
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
(function (root, factory) { (function (root, factory) {
define(["converse-core", define(["converse-core",
"bootstrap", "bootstrap",
"formdata-polyfill",
"lodash.fp", "lodash.fp",
"templates/converse_brand_heading.html", "templates/converse_brand_heading.html",
"templates/controlbox.html", "templates/controlbox.html",
...@@ -21,6 +22,7 @@ ...@@ -21,6 +22,7 @@
}(this, function ( }(this, function (
converse, converse,
bootstrap, bootstrap,
_FormData,
fp, fp,
tpl_brand_heading, tpl_brand_heading,
tpl_controlbox, tpl_controlbox,
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
(function (root, factory) { (function (root, factory) {
define([ define([
"converse-core", "converse-core",
"formdata-polyfill",
"utils/muc", "utils/muc",
"xss", "xss",
"templates/add_chatroom_modal.html", "templates/add_chatroom_modal.html",
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
], factory); ], factory);
}(this, function ( }(this, function (
converse, converse,
_FormData,
muc_utils, muc_utils,
xss, xss,
tpl_add_chatroom_modal, tpl_add_chatroom_modal,
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
(function (root, factory) { (function (root, factory) {
define(["converse-core", define(["converse-core",
"bootstrap", "bootstrap",
"formdata-polyfill",
"templates/alert.html", "templates/alert.html",
"templates/chat_status_modal.html", "templates/chat_status_modal.html",
"templates/profile_modal.html", "templates/profile_modal.html",
...@@ -20,6 +21,7 @@ ...@@ -20,6 +21,7 @@
}(this, function ( }(this, function (
converse, converse,
bootstrap, bootstrap,
_FormData,
tpl_alert, tpl_alert,
tpl_chat_status_modal, tpl_chat_status_modal,
tpl_profile_modal, tpl_profile_modal,
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
(function (root, factory) { (function (root, factory) {
define(["converse-core", define(["converse-core",
"formdata-polyfill",
"templates/add_contact_modal.html", "templates/add_contact_modal.html",
"templates/group_header.html", "templates/group_header.html",
"templates/pending_contact.html", "templates/pending_contact.html",
...@@ -20,6 +21,7 @@ ...@@ -20,6 +21,7 @@
], factory); ], factory);
}(this, function ( }(this, function (
converse, converse,
_FormData,
tpl_add_contact_modal, tpl_add_contact_modal,
tpl_group_header, tpl_group_header,
tpl_pending_contact, tpl_pending_contact,
......
...@@ -80,6 +80,7 @@ const config = { ...@@ -80,6 +80,7 @@ const config = {
"IPv6": path.resolve(__dirname, "node_modules/urijs/src/IPv6"), "IPv6": path.resolve(__dirname, "node_modules/urijs/src/IPv6"),
"SecondLevelDomains": path.resolve(__dirname, "node_modules/urijs/src/SecondLevelDomains"), "SecondLevelDomains": path.resolve(__dirname, "node_modules/urijs/src/SecondLevelDomains"),
"awesomplete": path.resolve(__dirname, "node_modules/awesomplete-avoid-xss/awesomplete"), "awesomplete": path.resolve(__dirname, "node_modules/awesomplete-avoid-xss/awesomplete"),
"formdata-polyfill": path.resolve(__dirname, "node_modules/formdata-polyfill/FormData"),
"backbone": path.resolve(__dirname, "node_modules/backbone/backbone"), "backbone": path.resolve(__dirname, "node_modules/backbone/backbone"),
"backbone.browserStorage": path.resolve(__dirname, "node_modules/backbone.browserStorage/backbone.browserStorage"), "backbone.browserStorage": path.resolve(__dirname, "node_modules/backbone.browserStorage/backbone.browserStorage"),
"backbone.nativeview": path.resolve(__dirname, "node_modules/backbone.nativeview/backbone.nativeview"), "backbone.nativeview": path.resolve(__dirname, "node_modules/backbone.nativeview/backbone.nativeview"),
......
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