small fix
This commit is contained in:
parent
ba3c719c0a
commit
d706fc96cb
@ -277,7 +277,7 @@ core.prototype._init_platform = function () {
|
||||
}
|
||||
});
|
||||
core.platform.string = core.platform.isPC ? "PC" : core.platform.isAndroid ? "Android" : core.platform.isIOS ? "iOS" : "";
|
||||
core.platform.supportCopy = document.queryCommandSupported || document.queryCommandSupported("copy");
|
||||
core.platform.supportCopy = document.queryCommandSupported && document.queryCommandSupported("copy");
|
||||
var chrome = /Chrome\/(\d+)\./i.exec(navigator.userAgent);
|
||||
if (chrome && parseInt(chrome[1]) >= 50) core.platform.isChrome = true;
|
||||
core.platform.isSafari = /Safari/i.test(navigator.userAgent) && !/Chrome/i.test(navigator.userAgent);
|
||||
|
||||
@ -941,7 +941,7 @@ utils.prototype.myprompt = function (hint, value, callback) {
|
||||
////// 动画显示某对象 //////
|
||||
utils.prototype.showWithAnimate = function (obj, speed, callback) {
|
||||
obj.style.display = 'block';
|
||||
if (!speed && main.mode != 'play') {
|
||||
if (!speed || main.mode != 'play') {
|
||||
obj.style.opacity = 1;
|
||||
if (callback) callback();
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user