Skip to content

Commit

Permalink
Support new element.js
Browse files Browse the repository at this point in the history
  • Loading branch information
stephband committed Oct 21, 2024
1 parent f221a49 commit 2fbc6a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ A `<slide-show>` is not just for images. Content may be any HTML. Here's a
// https://caniuse.com/?search=scrollto
//import 'dom/polyfills/element.scrollto.js';

import element from 'dom/element-1.js';
import element from 'dom/element.js';
import lifecycle from './modules/lifecycle.js';
import properties from './modules/properties.js';

const stylesheet = window.slideshowStylesheet || import.meta.url.replace(/\/[^\/]*\.js/, '/shadow.css');
lifecycle.shadow = `<link rel="stylesheet" href="${ window.slideshowStylesheet || import.meta.url.replace(/module\.js$/, 'shadow.css') }"/>`;

export default element('slide-show', lifecycle, properties, stylesheet, 'stephen.band/slide-show/');
export default element('slide-show', lifecycle, properties, 'stephen.band/slide-show/');

0 comments on commit 2fbc6a5

Please sign in to comment.