Skip to content

Commit 78b747f

Browse files
author
Guillaume Chau
committed
Make panelAction message param optional
1 parent b92bda1 commit 78b747f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shells/chrome/src/devtools-background.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ function onContextMenu (info, tab) {
7676
// Action that may execute immediatly
7777
// or later when the Vue panel is ready
7878

79-
function panelAction (cb, message) {
79+
function panelAction (cb, message = null) {
8080
if (created && panelShown) {
8181
cb()
8282
} else {
8383
pendingAction = cb
84-
toast(message)
84+
message && toast(message)
8585
}
8686
}
8787

0 commit comments

Comments
 (0)