changeset 3305:122767430a97

mod_conversejs: Remove view_mode CSS switching Not required as of converse.js 4.0.0
author Kim Alvefur <zash@zash.se>
date Sat, 08 Sep 2018 23:31:06 +0200 (2018-09-08)
parents 27db90321e7b
children b06fc0d03003
files mod_conversejs/mod_conversejs.lua
diffstat 1 files changed, 3 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua	Sat Sep 08 23:50:57 2018 +0200
+++ b/mod_conversejs/mod_conversejs.lua	Sat Sep 08 23:31:06 2018 +0200
@@ -14,8 +14,8 @@
 <html>
 <head>
 <meta charset="utf-8">
-<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/%s.min.css">
-<script charset="utf-8" src="https://cdn.conversejs.org/dist/converse.min.js"></script>
+<link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/converse.min.css"/>
+<script charset="utf-8" src="https://cdn.conversejs.org/dist/converse.min.js"/>
 </head>
 <body>
 <noscript>
@@ -59,18 +59,8 @@
 				registration_domain = allow_registration and module.host or nil;
 			};
 
-			local view_mode_css = "converse";
-			if type(more_options) == "table" then
-				for k,v in pairs(more_options) do
-					converse_options[k] = v;
-				end
-				if more_options.view_mode == "fullscreen" then
-					view_mode_css = "inverse";
-				end
-			end
-
 			event.response.headers.content_type = "text/html";
-			return template:format(view_mode_css, json_encode(converse_options));
+			return template:format(json_encode(converse_options));
 		end;
 	}
 });