nexfep 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README-CN.md CHANGED
@@ -124,8 +124,8 @@ try {
124
124
  }
125
125
  // 在其它实例抢锁时聚焦当前实例
126
126
  locker.whenLost(() => {
127
- if (!locker.isFocused()) {
128
- locker.focus();
127
+ if (!win.isFocused()) {
128
+ win.focus();
129
129
  }
130
130
  });
131
131
  // 释放锁
package/README.md CHANGED
@@ -124,8 +124,8 @@ try {
124
124
  }
125
125
  // Focus the current instance when other instances acquire the lock
126
126
  locker.whenLost(() => {
127
- if (!locker.isFocused()) {
128
- locker.focus();
127
+ if (!win.isFocused()) {
128
+ win.focus();
129
129
  }
130
130
  });
131
131
  // Release the lock
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexfep",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "A desktop application framework based on @webviewjs/webview",
5
5
  "keywords": [
6
6
  "@webviewjs/webview",