Web Dev Solutions

Catalin Mititiuc

From e0019128a04933870c74740b47016cfed85e6065 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 2 May 2024 12:12:44 -0700 Subject: Fix bad path set for object data prop --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/index.js') 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; } -- cgit v1.2.3