FlashFire/global.html

18 lines
461 B
HTML
Raw Normal View History

2010-07-10 17:44:22 -05:00
<!DOCTYPE HTML>
<script>
safari.application.addEventListener("message", handleMessage, false);
function handleMessage(theEvent) {
if (theEvent.name=="canLoad") {
var message = theEvent.message;
console.log(message);
if (message.name=="getSettings") {
console.log("Get Settings");
var data = message.data;
theEvent.message = safari.extension.settings.bob;
}
}
}
safari.application.addEventListener("message", handleMessage, false);
</script>