mirror of
https://github.com/zoriya/EAU.git
synced 2026-06-07 20:32:37 +00:00
Making browser launcher work for electron & web.
This commit is contained in:
Vendored
+10
-1
@@ -1,4 +1,13 @@
|
||||
<div class="container">
|
||||
<p>Steam</p>
|
||||
<button><a class="browser" href="http://eau.raccoon-sdg.fr/steamLog.php">Steam sign in</a></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(".browser").click((event) => {
|
||||
if(shell != null)
|
||||
event.preventDefault();
|
||||
|
||||
shell.openExternal(event.target.href);
|
||||
});
|
||||
</script>
|
||||
|
||||
Vendored
+3
-3
@@ -3,8 +3,8 @@ const { shell } = require("electron");
|
||||
|
||||
$(".browser").click((event) =>
|
||||
{
|
||||
console.log("Steam log clicked");
|
||||
event.preventDefault();
|
||||
console.log(shell);
|
||||
if(shell != null)
|
||||
event.preventDefault();
|
||||
|
||||
shell.openExternal(event.target.href);
|
||||
});
|
||||
Vendored
+1
-6
File diff suppressed because one or more lines are too long
+1
-1
@@ -32,7 +32,7 @@ function openSettings()
|
||||
{
|
||||
$("#content").load("fragments/settings.html", () =>
|
||||
{
|
||||
//Do things when the settings has been loaded.
|
||||
|
||||
});
|
||||
document.getElementById("title").innerHTML = "<i class='icon fas fa-arrow-left'></i> Settings";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user