Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-05-02 12:12:44 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-05-02 12:12:44 -0700
commite0019128a04933870c74740b47016cfed85e6065 (patch)
tree0042f859231a52024dd7d472170cdde1276f730d /src/index.js
parent0e2ddffc82a8fed48d5edd7be42be1d06a035314 (diff)
Fix bad path set for object data prop
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index 01ebd89..1f8f2c1 100644
--- a/src/index.js
+++ b/src/index.js
@@ -132,5 +132,5 @@ object.addEventListener('load', load);
objectDataObserver.observe(object, { attributeFilter: ['data'] });
if (object.getAttribute('data') !== fileName) {
- object.data = `assets/images/${fileName}`;
+ object.data = fileName;
}