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