Skip to content

Commit

Permalink
[desktop] for bug 61262
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Aug 2, 2023
1 parent 35cee11 commit 832c438
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions apps/common/main/lib/controller/Desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ define([
window.on_native_message('editor:config', 'request');
if ( !!window.native_message_cmd ) {
for ( var c in window.native_message_cmd ) {
if (c == 'uitheme:changed') continue;
window.on_native_message(c, window.native_message_cmd[c]);
}
}
Expand Down Expand Up @@ -634,24 +635,6 @@ define([

return false;
},

finalConstruct : function() {
if (!!native) {
window.on_native_message('editor:config', 'request');
if ( !!window.native_message_cmd ) {
for ( var c in window.native_message_cmd ) {
window.on_native_message(c, window.native_message_cmd[c]);
}
}

native.execCommand('webapps:features', JSON.stringify(features));

// hide mask for modal window
var style = document.createElement('style');
style.appendChild(document.createTextNode('.modals-mask{opacity:0 !important;}'));
document.getElementsByTagName('head')[0].appendChild(style);
}
}
};
};

Expand Down Expand Up @@ -778,6 +761,4 @@ define([

return false;
}

Common.Controllers.Desktop.finalConstruct();
});

0 comments on commit 832c438

Please sign in to comment.