Fix #248.
This commit is contained in:
parent
d4bb307404
commit
97902bbfcc
@ -1223,7 +1223,7 @@
|
||||
$.before(form, link);
|
||||
}
|
||||
g.callbacks.push(this.node);
|
||||
if (engine === 'webkit') {
|
||||
if (/chrome/i.test(navigator.userAgent)) {
|
||||
qr.status({
|
||||
ready: true
|
||||
});
|
||||
@ -1832,7 +1832,7 @@
|
||||
reader.readAsBinaryString(reply.file);
|
||||
return;
|
||||
}
|
||||
if (engine === 'webkit') {
|
||||
if (/chrome/i.test(navigator.userAgent)) {
|
||||
qr.message.post(post);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -900,7 +900,8 @@ qr =
|
||||
$.before form, link
|
||||
g.callbacks.push @node
|
||||
|
||||
if engine is 'webkit'
|
||||
# CORS is ignored for content script on Chrome, but not Safari/Oprah/Firefox.
|
||||
if /chrome/i.test navigator.userAgent
|
||||
qr.status ready: true
|
||||
else
|
||||
iframe = $.el 'iframe',
|
||||
@ -1405,7 +1406,8 @@ qr =
|
||||
reader.readAsBinaryString reply.file
|
||||
return
|
||||
|
||||
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.post post
|
||||
return
|
||||
qr.message.send post
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user