diff --git a/www/code/main.js b/www/code/main.js
index d4decf89f..2647f01a2 100644
--- a/www/code/main.js
+++ b/www/code/main.js
@@ -332,17 +332,22 @@ define([
}).join('\n') +
'';
+ setMode(lastLanguage);
+
/* Remember the user's last choice of theme using localStorage */
var themeKey = 'CRYPTPAD_CODE_THEME';
var lastTheme = localStorage.getItem(themeKey) || 'default';
/* Let the user select different themes */
- var themeDropdown = '';
+ var $themeDropdown = $('