add lack of svg support file
parent
3ce12fba9b
commit
74691af06f
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
||||||
<link rel="icon" type="image/png" href="images/logo.png"/>
|
<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>
|
<title>Browser does not support SVG | SVG-edit</title>
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
|
|
|
@ -16,29 +16,13 @@
|
||||||
|
|
||||||
<!-- SCRIPTS -->
|
<!-- SCRIPTS -->
|
||||||
|
|
||||||
<!-- As yet no ES6 Module support -->
|
<!-- Lacking browser support -->
|
||||||
<!--{if jquery_release}>
|
<script type="module" src="./redirect-on-lacking-support.js"></script>
|
||||||
<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>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- If you do not wish to add extensions by URL, you can add calls
|
<!-- If you do not wish to add extensions by URL, you can add calls
|
||||||
within the following file to svgEditor.setConfig -->
|
within the following file to svgEditor.setConfig -->
|
||||||
<script type="module" src="index.js"></script>
|
<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>
|
<title>SVG-edit</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<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()) {
|
if (!supportsSvg()) {
|
||||||
window.location = 'browser-not-supported.html';
|
window.location = './browser-not-supported.html';
|
||||||
}
|
}
|
||||||
|
export {};
|
||||||
|
|
Loading…
Reference in New Issue