-
@fabiospampinato @electronjs You can use DOMPurify by default (but lazy-loaded), and the new built-in API as a progressive enhancement. I’m a big fan of this pattern.
js if (!('api' in Foo)) { await import('./api.js'); // … }
js
if (!('api' in Foo)) {
await import('./api.js');
// …
}