@capacitor/android 8.6.0 → 8.6.1-nightly-20261030T150922.0

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.
@@ -190,7 +190,14 @@ public class MockCordovaWebViewImpl implements CordovaWebView {
190
190
  }
191
191
 
192
192
  public void triggerDocumentEvent(final String eventName) {
193
- eval("window.Capacitor.triggerEvent('" + eventName + "', 'document');", (s) -> {});
193
+ // Pages served without the bridge (e.g. server.errorPath) have no window.Capacitor; drop the event rather than throw
194
+ eval(
195
+ "if (typeof window.Capacitor !== 'undefined' && typeof window.Capacitor.triggerEvent === 'function') {" +
196
+ "window.Capacitor.triggerEvent('" +
197
+ eventName +
198
+ "', 'document'); }",
199
+ (s) -> {}
200
+ );
194
201
  }
195
202
 
196
203
  @Override
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/android",
3
- "version": "8.6.0",
3
+ "version": "8.6.1-nightly-20261030T150922.0",
4
4
  "description": "Capacitor: Cross-platform apps with JavaScript and the web",
5
5
  "homepage": "https://capacitorjs.com",
6
6
  "author": "Ionic Team <hi@ionic.io> (https://ionic.io)",
@@ -23,7 +23,7 @@
23
23
  "verify": "./gradlew clean lint build test -b capacitor/build.gradle"
24
24
  },
25
25
  "peerDependencies": {
26
- "@capacitor/core": "^8.6.0"
26
+ "@capacitor/core": "^8.6.0-nightly-20261030T150922.0"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"