Skip to content

Commit

Permalink
Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cavearr committed Nov 11, 2024
1 parent fc2d9c5 commit 8a2d002
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"globals": {
"iceStudio":false,
"Icestudio":false,
"iceStudioReady":false,
"domCache":false,
"iprof":false,
"IceProfiler":false,
Expand Down
11 changes: 6 additions & 5 deletions app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,13 @@ async function initAfterLoad() {

$("#main-icestudio-load-wrapper").addClass("fade-loaded");
$("#main-icestudio-wrapper").addClass("loaded");
angular.element(document).ready(function() {
angular.element(document).ready(function() {

$("#main-icestudio-load-wrapper").addClass("loaded");
$("#main-icestudio-load-wrapper").removeClass("fade-loaded");
iceStudioReady=true;
});
$("#main-icestudio-load-wrapper").addClass("loaded");
$("#main-icestudio-load-wrapper").removeClass("fade-loaded");
iceStudioReady=true;
});
}

//-- Remove loaders when app is fully loaded
initAfterLoad();
7 changes: 4 additions & 3 deletions app/scripts/services/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,12 @@ angular.module('icestudio')

this.waitForIcestudioReady=function(){

if(iceStudioReady) return true;

if(iceStudioReady){
return true;
}
return false;

}
};
this.open = function (filepath, emptyPath) {
let _this=this;
utils.beginBlockingTask();
Expand Down

0 comments on commit 8a2d002

Please sign in to comment.