Upgrade Slate to commit 97c8dd4

This commit is contained in:
Andy Wilkinson
2024-05-31 14:06:22 +01:00
parent 93e89496a6
commit c98c705ad9
11 changed files with 133 additions and 58 deletions

View File

@@ -143,7 +143,7 @@ under the License.
languages = l;
var presetLanguage = getLanguageFromQueryString();
if (presetLanguage) {
if (presetLanguage && languages.includes(presetLanguage)) {
// the language is in the URL, so use that language!
activateLanguage(presetLanguage);