V1
This commit is contained in:
@@ -57,6 +57,11 @@
|
||||
const key = JSON.stringify(data);
|
||||
if (key === previousContent) return;
|
||||
previousContent = key;
|
||||
if (window.AlfredViews && window.AlfredViews.canRender(data)) {
|
||||
window.AlfredViews.render(data);
|
||||
return;
|
||||
}
|
||||
content.classList.remove('alfred-view');
|
||||
const fragment = document.createDocumentFragment();
|
||||
if (data.type === 'image' && typeof data.url === 'string') {
|
||||
// Refuser les URL javascript: et les schémas non prévus.
|
||||
|
||||
Reference in New Issue
Block a user