Skip to content

Commit 9723a21

Browse files
committed
Fixed ignored config attribute for custom types
1 parent 8246bab commit 9723a21

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/core.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/core.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm/custom.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const handleCustomType = (node) => {
5454
version,
5555
type: runtime,
5656
custom: type,
57-
config: config || {},
57+
config: node.getAttribute('config') || config || {},
5858
async: node.hasAttribute('async')
5959
});
6060
defineProperty(node, 'xworker', { value: xworker });

esm/worker/class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default (...args) =>
3434
// because there's no location at all in the Worker as it's embedded.
3535
// fallback to a generic, ignored, config.txt file to still provide a URL.
3636
const { config: c } = options;
37-
const config = absoluteURL(c && typeof c === 'string' ? c : './config.txt');
37+
const config = absoluteURL(typeof c === 'string' ? c : './config.txt');
3838

3939
const bootstrap = fetch(url)
4040
.then(getText)

0 commit comments

Comments
 (0)