Create proper shim for xss library

This commit is contained in:
Robin Ward 2020-09-14 15:57:32 -04:00
parent 7699b90f1a
commit 30e9112535
4 changed files with 5 additions and 4 deletions

View File

@ -25,6 +25,10 @@ define("bootbox", ["exports"], function (__exports__) {
__exports__.default = window.bootbox;
});
define("xss", ["exports"], function (__exports__) {
__exports__.default = window.filterXSS;
});
define("mousetrap", ["exports"], function (__exports__) {
__exports__.default = window.Mousetrap;
});

View File

@ -6,7 +6,6 @@
//= require ./pretty-text/addon/emoji
//= require ./pretty-text/addon/engines/discourse-markdown-it
//= require xss.min
//= require ./pretty-text/addon/xss
//= require ./pretty-text/addon/white-lister
//= require ./pretty-text/addon/sanitizer
//= require ./pretty-text/addon/oneboxer

View File

@ -1,4 +1,4 @@
import xss from "pretty-text/xss";
import xss from "xss";
function attr(name, value) {
if (value) {

View File

@ -1,2 +0,0 @@
// Shim for xss.js library
export default window.filterXSS;