Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 3637ab7

Browse files
Add Aero with a warning
1 parent 7ded90c commit 3637ab7

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ This is our second edition of [Ruby](https://github.com/ruby-network/ruby-v1). T
7272
- [Ultraviolet](https://github.com/titaniumnetwork-dev/ultraviolet)
7373
- [Dynamic Interception Proxy (DIP)](https://github.com/Dynamic-Interception-Proxy/DIP)
7474
- [Osana](https://github.com/nebulaservices/osana)
75-
[aero](https://github.com/nebulaservices/aero) **NOTE: aero is unstable and may cause issues** (We currently use our own [fork](https://github.com/ruby-network/aero))
75+
- [aero](https://github.com/nebulaservices/aero) **NOTE: aero is unstable and may cause issues** (We currently use our own [fork](https://github.com/ruby-network/aero))
7676
---
7777

7878
- Basic Password protection for the website (you can set a password in the settings page)

public/js/settings.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@ switch (localStorage.getItem('favicon')) {
3737
}
3838

3939
function changeProxy(proxy) {
40-
localStorage.setItem('proxy', proxy);
40+
if (proxy === 'Aero') {
41+
if (window.confirm('NOTE: aero is very unstable and may break are you sure you want to use it? (Press OK to continue)')) {
42+
localStorage.setItem('proxy', proxy)
43+
} else {
44+
window.alert('Ok, defaulting to last selected option...')
45+
window.location.reload();
46+
}
47+
} else {
48+
localStorage.setItem('proxy', proxy);
49+
}
4150
}
4251
switch (localStorage.getItem('proxy')) {
4352
case null:

src/pages/settings.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ import Password from '../components/password';
7575
<option value="Ultraviolet">Ultraviolet</option>
7676
<option value="DIP">Dynamic Interception Proxy (DIP)</option>
7777
<option value="Osana">Osana</option>
78+
<option value="Aero">Aero (BETA)</option>
7879
</select>
7980
<div class="divider mt-20">Search Engine Select</div>
8081
<select

0 commit comments

Comments
 (0)