# HG changeset patch # User Emmanuel Gil Peyrot # Date 1700158702 -3600 # Node ID ef3aa6901a935a87916cfdbce4bdd7c0e0b6425f # Parent b117b63bcdbb8e136b02ab078fe96e61b5e4b5e3 mod_invites_page: Add support for Haiku and mobile Linux diff -r b117b63bcdbb -r ef3aa6901a93 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";