Install java plugin for safari6/26/2023 I tried doing this on other sites and it doesn't exist: "undefined". Notice that it exists on a non-HTML page, meaning it's being provided by the browser (since this script doesn't execute, nor has the code in it to provide this method). I tested this theory by going to the JS file itself and opening the JS console:Īfter that JS file has loaded, type typeof(safari.installExtension) in the JS console and it should return "function". I've done some extensive testing on this and the safari.installExtension() method is only present if the domain matches (probably controlled by the browser, similar to how certain Chrome APIs only shows up inside of extensions themselves). I don't think this is possible to do on any other domain except.
0 Comments
Leave a Reply. |