mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-28 07:57:04 +01:00
Update embed.html.j2
This commit is contained in:
parent
5e601fcf15
commit
60c83b8125
@ -27,6 +27,11 @@
|
||||
{% if css.css is not none %}{{ css.css }}{% endif %}
|
||||
{% endif %}
|
||||
</style>
|
||||
|
||||
<!--Provide default mobile metadata-->
|
||||
<meta id=AppTitleApple name="apple-mobile-web-app-title" content="TitanEmbeds">
|
||||
<meta id=AppTitleAndroid name="application-name" content="TitanEmbeds">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div class="navbar-fixed">
|
||||
@ -369,6 +374,15 @@
|
||||
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='js/embed.js') }}"></script>
|
||||
|
||||
<!--Update mobile metadata to guild name-->
|
||||
<script>
|
||||
function AppTitleUpdate() {
|
||||
var UpdatedAppTitle = document.getElementById("guild_name").innerHTML;
|
||||
document.getElementById("AppTitleApple").content = UpdatedAppTitle;
|
||||
document.getElementById("AppTitleAndroid").content = UpdatedAppTitle;
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Electron fix -->
|
||||
<script>
|
||||
if (window.module) {
|
||||
|
Loading…
Reference in New Issue
Block a user