Skip to content

Commit eca0926

Browse files
committed
šŸ› Fix a harmless error on startup when trying to render the sidebar before player load finishes.
1 parent 8138ba6 commit eca0926

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ā€Žlib/sidebar.js

+4
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ const extraSidebarItems = async state => {
134134
}
135135

136136
export const renderSidebar = async state => {
137+
// Early out if we aren't fully set up yet.
138+
if (!state.player) {
139+
return
140+
}
137141
// Generate the crop statusbar HTML.
138142
let soonestPosition = null
139143
let soonestTime = null

0 commit comments

Comments
Ā (0)