Skip to content

Commit

Permalink
Resolve Brackets freezing/crashing on windows on reload.
Browse files Browse the repository at this point in the history
Workaround to resolve brackets freezing and crashing on some windows OS on installing/uninstalling extensions and on reload. 
Issue Reference:
adobe#11477
  • Loading branch information
hussainb committed Jul 29, 2015
1 parent ada8199 commit 289344a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/document/DocumentCommandHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1634,8 +1634,11 @@ define(function (require, exports, module) {
if (fragment !== -1) {
href = href.substr(0, fragment);
}

window.location.href = href;
// Defer for a more successful reload.
setTimeout(function(){
window.location.href = href;
},1000)

});
}).fail(function () {
_isReloading = false;
Expand Down

0 comments on commit 289344a

Please sign in to comment.