mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
[WAISY-0] tesiting containr communication
This commit is contained in:
@@ -26,12 +26,23 @@ export class TestingContainerComponent implements OnInit {
|
||||
}
|
||||
|
||||
createEvent() {
|
||||
try {
|
||||
(window as any).webkit.messageHandlers.test.postMessage('Hello, world!');
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
window.postMessage(
|
||||
{
|
||||
opencamera: true
|
||||
},
|
||||
location.origin
|
||||
);
|
||||
window.postMessage(
|
||||
{
|
||||
opencamera2: true
|
||||
},
|
||||
'*'
|
||||
);
|
||||
}
|
||||
|
||||
fakeScanEvent() {
|
||||
|
||||
Reference in New Issue
Block a user