antosdk-apps/SVGEdit/svgedit/browser-not-supported.js

9 lines
244 B
JavaScript
Raw Permalink Normal View History

2023-08-17 23:54:41 +02:00
const supportsSvg = function () {
return Boolean(document.createElementNS && document.createElementNS('http://www.w3.org/2000/svg', 'svg').createSVGRect)
}
if (!supportsSvg()) {
window.location = './browser-not-supported.html'
}
export {}