Revert "Create proper shim for xss library"

This reverts commit 30e9112535.
This commit is contained in:
Guo Xiang Tan 2020-09-15 11:38:40 +08:00
parent b2f556232f
commit e3b4632f04
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
4 changed files with 4 additions and 5 deletions

View File

@ -25,10 +25,6 @@ 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,6 +6,7 @@
//= 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 "xss";
import xss from "pretty-text/xss";
function attr(name, value) {
if (value) {

View File

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