Merge branch 'develop'
This commit is contained in:
commit
982c970a7a
@ -16,7 +16,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form action="javascript: save();">
|
||||
<form>
|
||||
<div class="form-header">
|
||||
<h1>Loading...</h1>
|
||||
</div>
|
||||
@ -78,7 +78,7 @@
|
||||
|
||||
<div class="form-footer">
|
||||
<div class="form-group" id="buttons">
|
||||
<button id="cancel-button">Cancel</button>
|
||||
<button id="cancel-button" type="button">Cancel</button>
|
||||
<button type="submit">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -17,7 +17,7 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form action="javascript: save();">
|
||||
<form>
|
||||
<div class="form-header">
|
||||
<h1>Settings</h1>
|
||||
</div>
|
||||
|
@ -65,6 +65,11 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
remote.getCurrentWindow().close();
|
||||
});
|
||||
|
||||
document.querySelector('form')?.addEventListener('submit', e => {
|
||||
e.preventDefault();
|
||||
save();
|
||||
});
|
||||
|
||||
ipcRenderer.send('sync-settings');
|
||||
|
||||
document.getElementById('userAgentAutoFill')?.addEventListener('click', () => {
|
||||
@ -170,7 +175,7 @@ function loadServiceValues() {
|
||||
}
|
||||
}
|
||||
|
||||
(window as any).save = () => {
|
||||
function save() {
|
||||
let form = document.querySelector('form');
|
||||
if (!form) return;
|
||||
const formData = new FormData(form);
|
||||
|
@ -36,7 +36,7 @@ ipcRenderer.on('updateStatus', (e, available, version) => {
|
||||
}
|
||||
});
|
||||
|
||||
(window as any).save = () => {
|
||||
function save() {
|
||||
let form = document.querySelector('form');
|
||||
if (!form) return;
|
||||
const formData = new FormData(form);
|
||||
@ -71,6 +71,11 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
remote.getCurrentWindow().close();
|
||||
});
|
||||
|
||||
document.querySelector('form')?.addEventListener('submit', e => {
|
||||
e.preventDefault();
|
||||
save();
|
||||
});
|
||||
|
||||
ipcRenderer.send('syncSettings');
|
||||
ipcRenderer.send('checkForUpdates');
|
||||
});
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tabs",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "Persistent and separate browser tabs in one window.",
|
||||
"author": {
|
||||
"name": "Alice Gaudon",
|
||||
|
Loading…
Reference in New Issue
Block a user