Skip to content

Commit 77b3e73

Browse files
authored
fix: the desktop startup param is incorrect (#777)
Co-authored-by: rick <[email protected]>
1 parent 42b73d0 commit 77b3e73

File tree

2 files changed

+168
-163
lines changed

2 files changed

+168
-163
lines changed

console/atest-desktop/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
<label for="bin-location">Bin Location</label>
4444
</td>
4545
<td>
46-
<input name="bin-location" id="bin-location" type="text"/>
46+
<select name="bin-location" id="bin-location">
47+
<option value="built-in">Built-in</option>
48+
<option value="system-path">System Path</option>
49+
<option value="home-path">Home Path</option>
50+
</select>
4751
</td>
4852
</tr>
4953
<tr>
@@ -128,14 +132,14 @@
128132

129133
const binLocation = document.getElementById('bin-location');
130134
binLocation.addEventListener("input", function(e) {
131-
window.electronAPI.setBinLocation(binLocation.value)
135+
window.electronAPI.setMainProcessLocation(binLocation.value)
132136
});
133137

134138
(async function() {
135139
portInput.value = await window.electronAPI.getPort()
136140
extensionRegistry.value = await window.electronAPI.getExtensionRegistry()
137141
downloadTimeout.value = await window.electronAPI.getDownloadTimeout()
138-
binLocation.value = await window.electronAPI.getBinLocation()
142+
binLocation.value = await window.electronAPI.getMainProcessLocation()
139143

140144
document.getElementById('address').innerText = await window.electronAPI.getHomePage();
141145
})();

0 commit comments

Comments
 (0)