- 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
This commit is contained in:
@@ -5,11 +5,15 @@
|
||||
<title>SVG Edit</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script>
|
||||
// This method adds the script that overrides the default open/save handlers
|
||||
/* eslint-disable no-unused-vars */
|
||||
/**
|
||||
* This method adds the script that overrides the default open/save handlers.
|
||||
* @returns {void}
|
||||
*/
|
||||
function addHandlers () {
|
||||
var cdoc = document.getElementById('container').contentDocument;
|
||||
const cdoc = document.getElementById('container').contentDocument;
|
||||
if (cdoc) {
|
||||
var scriptelm = cdoc.createElement('script');
|
||||
const scriptelm = cdoc.createElement('script');
|
||||
scriptelm.src = '../handlers.js';
|
||||
cdoc.getElementsByTagName('head')[0].appendChild(scriptelm);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user