mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(server): webclipper not working due to import issue
This commit is contained in:
parent
1af20bdb73
commit
d9249e3760
@ -1,5 +1,5 @@
|
|||||||
import sanitizeHtml from "sanitize-html";
|
import sanitizeHtml from "sanitize-html";
|
||||||
import sanitizeUrl from "@braintree/sanitize-url";
|
import { sanitizeUrl } from "@braintree/sanitize-url";
|
||||||
import optionService from "./options.js";
|
import optionService from "./options.js";
|
||||||
|
|
||||||
// Be consistent with `ALLOWED_PROTOCOLS` in `src\public\app\services\link.js`
|
// Be consistent with `ALLOWED_PROTOCOLS` in `src\public\app\services\link.js`
|
||||||
@ -190,6 +190,6 @@ function sanitize(dirtyHtml: string) {
|
|||||||
export default {
|
export default {
|
||||||
sanitize,
|
sanitize,
|
||||||
sanitizeUrl: (url: string) => {
|
sanitizeUrl: (url: string) => {
|
||||||
return sanitizeUrl.sanitizeUrl(url).trim();
|
return sanitizeUrl(url).trim();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user