mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix(server): webclipper not working due to import issue
This commit is contained in:
		@@ -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();
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user