@smartface/smartface.emulator
Advanced tools
Comparing version
20
main.js
@@ -66,3 +66,2 @@ define(function(require, exports, module) { | ||
dispatcher.ready(function(err) { | ||
runEmulatorButton.enable(); | ||
if (err) { | ||
@@ -75,3 +74,2 @@ dialogError("An error occurred: " + err.constructor.name); | ||
$(".emulatorMain").css("display", "block"); | ||
$(".emulatorBtn .c9-icon").css('cssText', ''); | ||
//TODO: remove from try-catch later | ||
@@ -89,2 +87,3 @@ try { | ||
smfProjectChecker.check(function(err, reportObj) { | ||
enableRunOnDeviceButton(); | ||
if (err) return console.error(err); | ||
@@ -147,2 +146,14 @@ | ||
function enableRunOnDeviceButton() { | ||
$(".emulatorBtn .c9-icon").css('cssText', ''); | ||
runEmulatorButton.enable(); | ||
} | ||
function disableRunOnDeviceButton() { | ||
var animationUrl = 'url("' + staticPrefix + '/icons/anim_' + settings.get("user/general/@skin") + '.gif")'; | ||
$(".emulatorBtn .c9-icon").css('cssText', 'background-image: ' + | ||
animationUrl + ' !important; background-size: 18px !important; background-position: unset !important;'); | ||
runEmulatorButton.disable(); | ||
} | ||
function getQRCodeData(callback) { | ||
@@ -259,6 +270,3 @@ getQRInfo(function(info) { | ||
exec: function() { | ||
var animationUrl = 'url("' + staticPrefix + '/icons/anim_' + settings.get("user/general/@skin") + '.gif")'; | ||
$(".emulatorBtn .c9-icon").css('cssText', 'background-image: ' + | ||
animationUrl + ' !important; background-size: 18px !important; background-position: unset !important;'); | ||
runEmulatorButton.disable(); | ||
disableRunOnDeviceButton(); | ||
plugin.show(); | ||
@@ -265,0 +273,0 @@ } |
{ | ||
"name": "@smartface/smartface.emulator", | ||
"version": "6.8.1", | ||
"version": "6.8.2", | ||
"description": "Smartface Emulator", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
110731
0.13%378
1.61%