mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Added native menu support in desktop mode. #5503
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
//////////////////////////////////////////////////////////////
|
||||
|
||||
import Notify from '../../../static/js/helpers/Notifier';
|
||||
import { getBrowser } from '../../../static/js/utils';
|
||||
|
||||
define('pgadmin.settings', [
|
||||
'jquery', 'sources/pgadmin',
|
||||
@@ -51,6 +52,11 @@ define('pgadmin.settings', [
|
||||
window.onbeforeunload = null;
|
||||
// Now reload page
|
||||
location.reload(true);
|
||||
let {name: browser} = getBrowser();
|
||||
if(browser == 'Nwjs') {
|
||||
pgAdmin.Browser.create_menus();
|
||||
}
|
||||
|
||||
})
|
||||
.fail(function() {
|
||||
console.warn(
|
||||
|
||||
Reference in New Issue
Block a user