Create proper shim for xss library
This commit is contained in:
parent
7699b90f1a
commit
30e9112535
|
@ -25,6 +25,10 @@ define("bootbox", ["exports"], function (__exports__) {
|
||||||
__exports__.default = window.bootbox;
|
__exports__.default = window.bootbox;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
define("xss", ["exports"], function (__exports__) {
|
||||||
|
__exports__.default = window.filterXSS;
|
||||||
|
});
|
||||||
|
|
||||||
define("mousetrap", ["exports"], function (__exports__) {
|
define("mousetrap", ["exports"], function (__exports__) {
|
||||||
__exports__.default = window.Mousetrap;
|
__exports__.default = window.Mousetrap;
|
||||||
});
|
});
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
//= require ./pretty-text/addon/emoji
|
//= require ./pretty-text/addon/emoji
|
||||||
//= require ./pretty-text/addon/engines/discourse-markdown-it
|
//= require ./pretty-text/addon/engines/discourse-markdown-it
|
||||||
//= require xss.min
|
//= require xss.min
|
||||||
//= require ./pretty-text/addon/xss
|
|
||||||
//= require ./pretty-text/addon/white-lister
|
//= require ./pretty-text/addon/white-lister
|
||||||
//= require ./pretty-text/addon/sanitizer
|
//= require ./pretty-text/addon/sanitizer
|
||||||
//= require ./pretty-text/addon/oneboxer
|
//= require ./pretty-text/addon/oneboxer
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import xss from "pretty-text/xss";
|
import xss from "xss";
|
||||||
|
|
||||||
function attr(name, value) {
|
function attr(name, value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
// Shim for xss.js library
|
|
||||||
export default window.filterXSS;
|
|
Loading…
Reference in New Issue