Skip to content

Commit dfd202b

Browse files
committed
wrong host checking in examples fix.
1 parent 53bf123 commit dfd202b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/fullscreen.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div id="designer"></div>
1919

2020
<script>
21-
const libUrl = (location.host.toLowerCase() === 'localhost')
21+
const libUrl = (location.hostname.toLowerCase() === 'localhost')
2222
? '../lib/designer.js'
2323
: '//cdn.jsdelivr.net/npm/sequential-workflow-designer/lib/designer.js';
2424
document.write(`<script src="${libUrl}"><\/script>`);

examples/image-filter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</div>
2525

2626
<script>
27-
const libUrl = (location.host.toLowerCase() === 'localhost')
27+
const libUrl = (location.hostname.toLowerCase() === 'localhost')
2828
? '../lib/designer.js'
2929
: '//cdn.jsdelivr.net/npm/sequential-workflow-designer/lib/designer.js';
3030
document.write(`<script src="${libUrl}"><\/script>`);

examples/light-dark.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<div id="dark" class="designer"></div>
2323

2424
<script>
25-
const libUrl = (location.host.toLowerCase() === 'localhost')
25+
const libUrl = (location.hostname.toLowerCase() === 'localhost')
2626
? '../lib/designer.js'
2727
: '//cdn.jsdelivr.net/npm/sequential-workflow-designer/lib/designer.js';
2828
document.write(`<script src="${libUrl}"><\/script>`);

examples/live-testing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h5>Console</h5>
3939
</div>
4040

4141
<script>
42-
const libUrl = (location.host.toLowerCase() === 'localhost')
42+
const libUrl = (location.hostname.toLowerCase() === 'localhost')
4343
? '../lib/designer.js'
4444
: '//cdn.jsdelivr.net/npm/sequential-workflow-designer/lib/designer.js';
4545
document.write(`<script src="${libUrl}"><\/script>`);

examples/particles.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</div>
4646

4747
<script>
48-
const libUrl = (location.host.toLowerCase() === 'localhost')
48+
const libUrl = (location.hostname.toLowerCase() === 'localhost')
4949
? '../lib/designer.js'
5050
: '//cdn.jsdelivr.net/npm/sequential-workflow-designer/lib/designer.js';
5151
document.write(`<script src="${libUrl}"><\/script>`);

0 commit comments

Comments
 (0)