Skip to content

Commit

Permalink
Fix merge build issues for wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Apr 18, 2024
1 parent 4700418 commit 66b892d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/app_goxjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"fyne.io/fyne/v2"
)

func (a *fyneApp) SendNotification(_ *fyne.Notification) {
func (a *fyneApp) SendNotification(n *fyne.Notification) {
window := js.Global().Get("window")
if window.IsUndefined() {
fyne.LogError("Current browser does not support notifications.", nil)
Expand All @@ -25,7 +25,7 @@ func (a *fyneApp) SendNotification(_ *fyne.Notification) {
// check permission
permission := notification.Get("permission")
showNotification := func() {
icon := app.icon.Content()
icon := a.icon.Content()
base64Str := base64.StdEncoding.EncodeToString(icon)
mimeType := http.DetectContentType(icon)
base64Img := fmt.Sprintf("data:%s;base64,%s", mimeType, base64Str)
Expand Down
2 changes: 1 addition & 1 deletion app/settings_goxjs.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ func (s *settings) watchSettings() {
}

func (s *settings) stopWatching() {
stopWatching()
stopWatchingTheme()
}

0 comments on commit 66b892d

Please sign in to comment.