Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
syntax_j
mycard
Commits
b87e73b3
Commit
b87e73b3
authored
Sep 18, 2021
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openDevTools in undocked mode
parent
231a79bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/mycard.component.ts
app/mycard.component.ts
+1
-1
index.js
index.js
+2
-2
No files found.
app/mycard.component.ts
View file @
b87e73b3
...
...
@@ -63,7 +63,7 @@ export class MyCardComponent implements OnInit {
&&
konami_code_logger
[
1
].
toLowerCase
()
==
'
b
'
&&
konami_code_logger
[
0
].
toLowerCase
()
==
'
a
'
)
{
this
.
currentWindow
.
webContents
.
openDevTools
();
this
.
currentWindow
.
webContents
.
openDevTools
(
{
mode
:
'
undocked
'
}
);
}
});
// document.addEventListener('drop', (event)=>{
...
...
index.js
View file @
b87e73b3
...
...
@@ -176,7 +176,7 @@ function createWindow() {
// Open the DevTools.
if
(
process
.
env
[
'
NODE_ENV
'
]
===
'
development
'
)
{
mainWindow
.
webContents
.
openDevTools
();
mainWindow
.
webContents
.
openDevTools
(
{
mode
:
'
undocked
'
,
activate
:
false
}
);
}
// Emitted when the window is closed.
...
...
@@ -194,7 +194,7 @@ function createTray() {
tray
.
on
(
'
click
'
,
(
event
)
=>
{
console
.
log
(
event
);
if
(
event
.
metaKey
)
{
mainWindow
.
webContents
.
openDevTools
();
mainWindow
.
webContents
.
openDevTools
(
{
mode
:
'
undocked
'
}
);
}
else
{
mainWindow
.
isVisible
()
?
mainWindow
.
hide
()
:
mainWindow
.
show
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment