@capgo/inappbrowser 7.20.6 → 7.20.7
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.
|
@@ -1296,22 +1296,6 @@ public class WebViewDialog extends Dialog {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
1299
|
-
// Also provide direct window methods for convenience
|
|
1300
|
-
window.postMessage = function(data) {
|
|
1301
|
-
try {
|
|
1302
|
-
var message = typeof data === 'string' ? data : JSON.stringify(data);
|
|
1303
|
-
window.AndroidInterface.postMessage(message);
|
|
1304
|
-
} catch(e) {
|
|
1305
|
-
console.error('Error in postMessage:', e);
|
|
1306
|
-
}
|
|
1307
|
-
};
|
|
1308
|
-
window.close = function() {
|
|
1309
|
-
try {
|
|
1310
|
-
window.AndroidInterface.close();
|
|
1311
|
-
} catch(e) {
|
|
1312
|
-
console.error('Error in close:', e);
|
|
1313
|
-
}
|
|
1314
|
-
};
|
|
1315
1299
|
}
|
|
1316
1300
|
// Override window.print function to use our PrintInterface
|
|
1317
1301
|
if (window.PrintInterface) {
|