Hopefuly last Safari posting bug fix. #248
This commit is contained in:
parent
97902bbfcc
commit
e769c56a9f
@ -1899,7 +1899,7 @@
|
|||||||
message: {
|
message: {
|
||||||
send: function(data) {
|
send: function(data) {
|
||||||
var host, window;
|
var host, window;
|
||||||
if (engine === 'webkit') {
|
if (/chrome/i.test(navigator.userAgent)) {
|
||||||
qr.message.receive(data);
|
qr.message.receive(data);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1469,7 +1469,8 @@ qr =
|
|||||||
|
|
||||||
message:
|
message:
|
||||||
send: (data) ->
|
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
|
qr.message.receive data
|
||||||
return
|
return
|
||||||
data.qr = true
|
data.qr = true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user