add lack of svg support file

master
jfh 2020-09-18 19:31:35 +02:00
parent 3ce12fba9b
commit 74691af06f
3 changed files with 8 additions and 21 deletions

View File

@ -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 {

View File

@ -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>

View File

@ -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 {};