Is there a way for a Mac control panel widget to restart itself

My dashboard widget has an automatic update system, but after each update, the user must press ⌘R to make changes. I want to do this automatically, without any user action.

Is there a widget way to reload it?

General methods do not work: I tried calling window.location.reload (), history.go (0) and window.location.href = window.location.href - each method throws an error.

+3
source share

Source: https://habr.com/ru/post/1770878/


All Articles