parent
2112448ae9
commit
eb6f02b3d4
10 changed files with 283 additions and 132 deletions
11
src/App.vue
11
src/App.vue
|
|
@ -12,7 +12,16 @@ import config from "./assets/config";
|
|||
export default {
|
||||
name: "App",
|
||||
mounted() {
|
||||
if (window.location.protocol == "http" && !window.location.hostname.endsWith('.onion')) {
|
||||
// Set RTL mode if flag given in config. TODO: this should be based on language, not a global setting.
|
||||
//
|
||||
if (config.rtl) {
|
||||
this.$vuetify.rtl = true;
|
||||
document.documentElement.setAttribute("dir", "rtl");
|
||||
}
|
||||
if (
|
||||
window.location.protocol == "http" &&
|
||||
!window.location.hostname.endsWith(".onion")
|
||||
) {
|
||||
// Redirect to HTTPS
|
||||
window.location.href = window.location.href.replace("http:", "https:");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue