Create proper shim for xss library - second attempt

This commit is contained in:
Robin Ward 2020-09-15 10:42:51 -04:00
parent 273db57d6e
commit 8c384ae6b8
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;