fix(server): webclipper not working due to import issue

pull/2106/head
Elian Doran 2025-06-02 16:34:41 +07:00
parent 1af20bdb73
commit d9249e3760
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

@ -1,5 +1,5 @@
import sanitizeHtml from "sanitize-html";
import sanitizeUrl from "@braintree/sanitize-url";
import { sanitizeUrl } from "@braintree/sanitize-url";
import optionService from "./options.js";
// Be consistent with `ALLOWED_PROTOCOLS` in `src\public\app\services\link.js`
@ -190,6 +190,6 @@ function sanitize(dirtyHtml: string) {
export default {
sanitize,
sanitizeUrl: (url: string) => {
return sanitizeUrl.sanitizeUrl(url).trim();
return sanitizeUrl(url).trim();
}
};