mirror of
https://github.com/leanote/desktop-app.git
synced 2025-10-15 07:31:33 +00:00
debug
This commit is contained in:
@@ -121,6 +121,8 @@ function getMsg(key) {
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
// 不要显示顶部菜单
|
||||
gui.Menu.setApplicationMenu(null)
|
||||
|
||||
$('.tool-close-blur').click(function() {
|
||||
gui.getCurrentWindow().close();
|
||||
|
8
main.js
8
main.js
@@ -5,9 +5,9 @@ var appIcon;
|
||||
|
||||
// Report crashes to our server.
|
||||
crashReporter.start({
|
||||
productName: 'YourName',
|
||||
companyName: 'YourCompany',
|
||||
submitURL: 'https://your-domain.com/url-to-submit',
|
||||
productName: 'Leanote',
|
||||
companyName: 'Leanote',
|
||||
submitURL: 'https://leanote.com/leanote-desktop/crash-reporter',
|
||||
autoSubmit: true
|
||||
});
|
||||
|
||||
@@ -298,7 +298,7 @@ function openIt() {
|
||||
|
||||
appIcon.on('click', function (e) {
|
||||
show();
|
||||
e.preventDefault();
|
||||
// e.preventDefault();
|
||||
});
|
||||
appIcon.on('right-click', function () {
|
||||
appIcon.popUpContextMenu(contextMenu);
|
||||
|
@@ -655,7 +655,7 @@ var UserInfo = {};
|
||||
window.requireNode = window.require;
|
||||
window.nodeRequire = window.require;
|
||||
window.require = undefined;
|
||||
window.debug = false;
|
||||
window.isDebug = false;
|
||||
</script>
|
||||
|
||||
<!-- 渲染view -->
|
||||
|
@@ -2079,10 +2079,14 @@ function userMenu(allUsers) {
|
||||
|
||||
Pren.init();
|
||||
|
||||
if (isMac() || debug) {
|
||||
if (isMac() || isDebug) {
|
||||
setMacTopMenu();
|
||||
}
|
||||
if (debug) {
|
||||
else {
|
||||
gui.Menu.setApplicationMenu(null)
|
||||
}
|
||||
|
||||
if (isDebug) {
|
||||
setTimeout(function () {
|
||||
gui.win.toggleDevTools();
|
||||
}, 3000)
|
||||
|
Reference in New Issue
Block a user