SHARE
TWEET

Untitled

a guest Jun 17th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.addEventListener('load', (event) => {
  2.     window.webkit.messageHandlers.contentLoaded.postMessage("content has loaded");
  3. });
  4.      
  5. window.addEventListener('DOMContentLoaded', (event) => {
  6.     window.webkit.messageHandlers.contentLoaded.postMessage("content has loaded");
  7. });
  8.      
  9. mounted() {
  10.     window.webkit.messageHandlers.contentLoaded.postMessage("content has loaded");    
  11. }
  12.      
  13. mounted() {
  14.     window.webkit.messageHandlers.contentLoaded.postMessage("content has loaded");    
  15. }
  16.      
  17. // This works!
  18. button.addEventListener('click', () => {
  19.    window.webkit.messageHandlers.contentLoaded.postMessage("content has loaded");  
  20. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top