mod_invites_page: Add support for Haiku and mobile Linux
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Thu, 16 Nov 2023 19:18:22 +0100
changeset 5729 ef3aa6901a93
parent 5728 b117b63bcdbb
child 5730 92ce3859df63
mod_invites_page: Add support for Haiku and mobile Linux
mod_invites_page/static/invite.js
--- 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";