fix iife with chrome
This commit is contained in:
2
dist/editor/index-iife.html
vendored
2
dist/editor/index-iife.html
vendored
@@ -29,7 +29,7 @@
|
||||
|
||||
<!-- 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-iife.js"></script>
|
||||
<script defer="defer" src="index-iife.js"></script>
|
||||
|
||||
<!-- FEEDS -->
|
||||
<link rel="alternate" type="application/atom+xml"
|
||||
|
||||
3
dist/editor/index-iife.js
vendored
3
dist/editor/index-iife.js
vendored
@@ -24441,8 +24441,9 @@
|
||||
var dimensions = curConfig.dimensions;
|
||||
var canvas = this; // "document" element associated with the container (same as window.document using default svg-editor.js)
|
||||
// NOTE: This is not actually a SVG document, but an HTML document.
|
||||
// JFH const svgdoc = container.ownerDocument;
|
||||
|
||||
var svgdoc = container.ownerDocument; // This is a container for the document being edited, not the document itself.
|
||||
var svgdoc = window.document; // This is a container for the document being edited, not the document itself.
|
||||
|
||||
/**
|
||||
* @name module:svgcanvas~svgroot
|
||||
|
||||
2
dist/editor/index-umd.html
vendored
2
dist/editor/index-umd.html
vendored
@@ -29,7 +29,7 @@
|
||||
|
||||
<!-- 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-umd.js"></script>
|
||||
<script src="index-umd.js"></script>
|
||||
|
||||
<!-- FEEDS -->
|
||||
<link rel="alternate" type="application/atom+xml"
|
||||
|
||||
3
dist/editor/index-umd.js
vendored
3
dist/editor/index-umd.js
vendored
@@ -24443,8 +24443,9 @@
|
||||
var dimensions = curConfig.dimensions;
|
||||
var canvas = this; // "document" element associated with the container (same as window.document using default svg-editor.js)
|
||||
// NOTE: This is not actually a SVG document, but an HTML document.
|
||||
// JFH const svgdoc = container.ownerDocument;
|
||||
|
||||
var svgdoc = container.ownerDocument; // This is a container for the document being edited, not the document itself.
|
||||
var svgdoc = window.document; // This is a container for the document being edited, not the document itself.
|
||||
|
||||
/**
|
||||
* @name module:svgcanvas~svgroot
|
||||
|
||||
3
dist/editor/index.js
vendored
3
dist/editor/index.js
vendored
@@ -24438,8 +24438,9 @@ function SvgCanvas(container, config) {
|
||||
var dimensions = curConfig.dimensions;
|
||||
var canvas = this; // "document" element associated with the container (same as window.document using default svg-editor.js)
|
||||
// NOTE: This is not actually a SVG document, but an HTML document.
|
||||
// JFH const svgdoc = container.ownerDocument;
|
||||
|
||||
var svgdoc = container.ownerDocument; // This is a container for the document being edited, not the document itself.
|
||||
var svgdoc = window.document; // This is a container for the document being edited, not the document itself.
|
||||
|
||||
/**
|
||||
* @name module:svgcanvas~svgroot
|
||||
|
||||
2
dist/editor/index.js.map
vendored
2
dist/editor/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user