Mercurial > prosody-modules
comparison mod_conversejs/mod_conversejs.lua @ 2980:ba6466fa6823
mod_conversejs: Specify a charset on script tag to prevent Browser from guessing
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 02 Apr 2018 16:15:24 +0200 |
parents | 5c60df8b1a07 |
children | 719b76ee0578 |
comparison
equal
deleted
inserted
replaced
2979:9480ca61294d | 2980:ba6466fa6823 |
---|---|
11 | 11 |
12 local template = [[ | 12 local template = [[ |
13 <!DOCTYPE html> | 13 <!DOCTYPE html> |
14 <meta charset="utf-8"> | 14 <meta charset="utf-8"> |
15 <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/%s.min.css"> | 15 <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/%s.min.css"> |
16 <script src="https://cdn.conversejs.org/dist/converse.min.js"></script> | 16 <script charset="utf-8" src="https://cdn.conversejs.org/dist/converse.min.js"></script> |
17 <body><script>converse.initialize(%s);</script> | 17 <body><script>converse.initialize(%s);</script> |
18 ]] | 18 ]] |
19 | 19 |
20 local more_options = module:get_option("conversejs_options"); | 20 local more_options = module:get_option("conversejs_options"); |
21 | 21 |