diff mod_invites_page/static/invite.js @ 5725:ef3aa6901a93

mod_invites_page: Add support for Haiku and mobile Linux
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 16 Nov 2023 19:18:22 +0100
parents 5f7f6ee32a11
children
line wrap: on
line diff
--- a/mod_invites_page/static/invite.js	Thu Nov 16 19:18:05 2023 +0100
+++ b/mod_invites_page/static/invite.js	Thu Nov 16 19:18:22 2023 +0100
@@ -7,8 +7,8 @@
 
 	// Detect current platform and show/hide appropriate clients
 	if(window.platform) {
-		var platform_friendly = null;
-		var platform_classname = null;
+		let platform_friendly = null;
+		let platform_classname = null;
 
 		switch(platform.os.family) {
 		case "Ubuntu":
@@ -19,6 +19,14 @@
 			platform_friendly = platform.os.family + " (Linux)";
 			platform_classname = "linux";
 			break;
+		case "Linux aarch64":
+			platform_friendly = "Linux mobile";
+			platform_classname = "linux";
+			break;
+		case "Haiku R1":
+			platform_friendly = "Haiku";
+			platform_classname = "haiku";
+			break;
 		case "Windows Phone":
 			platform_friendly = "Windows Phone";
 			platform_classname = "windows-phone";