Update embed.html.j2

This commit is contained in:
Jelle Z 2018-01-03 12:00:58 +01:00 committed by GitHub
parent 5e601fcf15
commit 60c83b8125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {