Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 389bd34f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

Also register players immediately in addition to DOMContentLoaded

When watching a video file direclty in the browser it generates a video player page for you
but doesn't fire the event
parent 183c91c6
......@@ -450,6 +450,9 @@ function loadMpris() {
sendPlayerGone();
});
// In some cases DOMContentLoaded won't fire, e.g. when watching a video file directly in the browser
// it generates a "video player" page for you but won't fire the event
registerAllPlayers();
document.addEventListener("DOMContentLoaded", function() {
registerAllPlayers();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment