mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-10 22:01:00 +01:00
parent
fb21124c9e
commit
8e1f79f537
@ -33,6 +33,7 @@ public class Contributors {
|
||||
public static String generateContributorHtml() {
|
||||
Contributor[] contributors = new Contributor[]{
|
||||
new Contributor("aidn5", CODE),
|
||||
new Contributor("Antonok", CODE),
|
||||
new Contributor("Argetan", CODE),
|
||||
new Contributor("Aurelien", CODE, LANG),
|
||||
new Contributor("BrainStone", CODE),
|
||||
|
@ -24,12 +24,7 @@ function jsonRequest(address, callback) {
|
||||
callback(null, "Request did not reach the server. (Server offline / Adblocker?)")
|
||||
}
|
||||
} catch (e) {
|
||||
if (e.message.includes('Unexpected end of JSON input') && navigator.brave && navigator.brave.isBrave) {
|
||||
navigator.brave.isBrave()
|
||||
.then(confirm => callback(null, e.message + (confirm ? " (Possibly blocked by ad-block in Brave)" : '') + " (See " + address + ")"));
|
||||
} else {
|
||||
callback(null, e.message + " (See " + address + ")")
|
||||
}
|
||||
callback(null, e.message + " (See " + address + ")")
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user