Hopefuly last Safari posting bug fix. #248

This commit is contained in:
Nicolas Stepien 2012-02-20 22:17:13 +01:00
parent 97902bbfcc
commit e769c56a9f
2 changed files with 3 additions and 2 deletions

View File

@ -1899,7 +1899,7 @@
message: {
send: function(data) {
var host, window;
if (engine === 'webkit') {
if (/chrome/i.test(navigator.userAgent)) {
qr.message.receive(data);
return;
}

View File

@ -1469,7 +1469,8 @@ qr =
message:
send: (data) ->
if engine is 'webkit'
# CORS is ignored for content script on Chrome, but not Safari/Oprah/Firefox.
if /chrome/i.test navigator.userAgent
qr.message.receive data
return
data.qr = true