add lack of svg support file
parent
3ce12fba9b
commit
74691af06f
|
@ -4,7 +4,7 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
||||
<link rel="icon" type="image/png" href="images/logo.png"/>
|
||||
<link rel="stylesheet" href="svg-editor.css"/>
|
||||
<link rel="stylesheet" href="svgedit.css"/>
|
||||
<title>Browser does not support SVG | SVG-edit</title>
|
||||
<style>
|
||||
body {
|
||||
|
|
|
@ -16,29 +16,13 @@
|
|||
|
||||
<!-- SCRIPTS -->
|
||||
|
||||
<!-- As yet no ES6 Module support -->
|
||||
<!--{if jquery_release}>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
|
||||
<!{else}-->
|
||||
<script src="jquery.min.js"></script>
|
||||
<!--{endif}-->
|
||||
|
||||
<!-- As yet no ES6 Module support -->
|
||||
<script src="jquery-ui/jquery-ui-1.8.17.custom.min.js"></script>
|
||||
|
||||
<!-- Lacking browser support -->
|
||||
<script type="module" src="./redirect-on-lacking-support.js"></script>
|
||||
|
||||
<!-- If you do not wish to add extensions by URL, you can add calls
|
||||
within the following file to svgEditor.setConfig -->
|
||||
<script type="module" src="index.js"></script>
|
||||
|
||||
<!-- FEEDS -->
|
||||
<link rel="alternate" type="application/atom+xml"
|
||||
title="SVG-edit General Discussion"
|
||||
href="https://groups.google.com/group/svg-edit/feed/atom_v1_0_msgs.xml"/>
|
||||
<link rel="alternate" type="application/atom+xml"
|
||||
title="SVG-edit Updates (Commits)"
|
||||
href="https://github.com/SVG-Edit/svgedit/commits/master.atom"/>
|
||||
|
||||
<title>SVG-edit</title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
import {supportsSvg} from '../common/browser.js';
|
||||
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';
|
||||
window.location = './browser-not-supported.html';
|
||||
}
|
||||
export {};
|
||||
|
|
Loading…
Reference in New Issue