Files
svgedit/editor/redirect-on-no-module-support.js
Brett Zamir e4231aeb10 - Linting (ESLint): Lint per latest ash-nazg (e.g., named capture)
- Linting (ESLint): Add HTML files to linting and add devDeps for new ash-nazg
- npm: Update devDeps
2019-07-03 17:50:46 +08:00

9 lines
390 B
JavaScript

// This file should only load if the user's browser doesn't support ESM
// This file will be stripped from the non-modular versions
// We only need to replace the first instance
location.href = location.href
.replace(/(?:xdomain-)?svg-editor-es\.html/, 'svg-editor.html')
.replace('openclipart-es.html', 'openclipart.html')
.replace('imagelib/index-es.html', 'imagelib/index.html');