We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9913769 commit 50ab4e8Copy full SHA for 50ab4e8
src/includes/events.js
@@ -5,11 +5,10 @@
5
const time = new Date(
6
event.querySelector('time[datetime]').getAttribute('datetime')
7
);
8
- // hide the event until the end of the day it's scheduled for
9
time.setHours(23, 59, 59, 999);
+ // remove future events
10
if (Date.now() < time.getTime()) {
11
- // TIL this is a thing, wow!
12
- event.outerHTML = '';
+ event.remove();
13
}
14
15
})();
0 commit comments