('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')
Format :
http://view.officeapps.live.com/op/view.aspx?src=[ONLY_OFFICE_FILE_URL_ENCODED]
document.addEventListener('click', (e) => { | |
const el = e.target; | |
if (el.tagName == 'A' && el.href && el.getAttribute("target") === "_blank") { | |
window.todesktop.contents.openUrlInBrowser(el.href); | |
} | |
}, false); |