0.0.145 dynamic replace title

This commit is contained in:
SBD
2024-01-06 13:29:19 +03:00
parent b5b8ab9228
commit 2bbf2f7de5
2 changed files with 2 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ SECRET_KEY = 'django-insecure-0lk552&eia*_v5q$c8((o4=0d6x_t4%y-*x9p=n05nydiu)s9-
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition

View File

@@ -58,6 +58,7 @@ function renderContent (el=null) {
data: JSON.stringify(data),
success: function(data){
document.querySelector(".content").innerHTML = data.html
document.title = data.title
window.scrollTo(0, 0);
let lang = getLang()
replaceHrefOnOnclick()