You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would be much easier to start if it would apply default formatting month="short" day="numeric" year="numeric" hour="numeric" minute="numeric" (or similar) and may be update-content=false to prevent updating content
I also have the "appending content" problem. But only if I use this library by import "@github/time-elements" in my bundle.js which webpack processes. If instead I add <script type="module" src="https://unpkg.com/@github/time-elements@3.1.2?module"></script> to my HTML file the problem doesn't appear (both when adding this script tag to <head> or just before the closing </body>).
I think my webpack setup is fairly pedestrian. One thing to note is that I don't have a polyfill installed but I think that is Ok because my browser is Firefox 90.0b10 (64-bit).
The bundle is about 100kB and loaded via <script src="dist/bundle.js"></script> in the <head>.
Somehow this feels like there is a race between two things or me not correctly initialising the time-elements library :-/
I found 2 problems: appending content in chrome and no default formatting
No default formatting:
Source:
Result:
would be much easier to start if it would apply default formatting
month="short" day="numeric" year="numeric" hour="numeric" minute="numeric"
(or similar) and may beupdate-content=false
to prevent updating contentAppending content in chrome:
Source:
Result:
The text was updated successfully, but these errors were encountered: