mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 09:13:38 +08:00
Revert "Create proper shim for xss library"
This reverts commit 30e9112535
.
This commit is contained in:
parent
b2f556232f
commit
e3b4632f04
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import xss from "xss";
|
||||
import xss from "pretty-text/xss";
|
||||
|
||||
function attr(name, value) {
|
||||
if (value) {
|
||||
|
|
2
app/assets/javascripts/pretty-text/addon/xss.js
Normal file
2
app/assets/javascripts/pretty-text/addon/xss.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
// Shim for xss.js library
|
||||
export default window.filterXSS;
|
Loading…
Reference in New Issue
Block a user