Switched to using png for favicon and display logo in notifications.
This commit is contained in:
parent
067a731ace
commit
57ea70cb82
2 changed files with 3 additions and 2 deletions
|
|
@ -278,7 +278,8 @@ function onNewLine(text, originator) {
|
||||||
if(result === "granted") {
|
if(result === "granted") {
|
||||||
var title = originalTitle === "" ? "Evennia" : originalTitle;
|
var title = originalTitle === "" ? "Evennia" : originalTitle;
|
||||||
var options = {
|
var options = {
|
||||||
body: text.replace(/(<([^>]+)>)/ig,"")
|
body: text.replace(/(<([^>]+)>)/ig,""),
|
||||||
|
icon: "/static/website/images/evennia_logo.png"
|
||||||
}
|
}
|
||||||
var n = new Notification(title, options);
|
var n = new Notification(title, options);
|
||||||
n.onclick = function(e) {
|
n.onclick = function(e) {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ JQuery available.
|
||||||
|
|
||||||
<link rel='stylesheet' type="text/css" media="screen" href={% static "webclient/css/webclient.css" %}>
|
<link rel='stylesheet' type="text/css" media="screen" href={% static "webclient/css/webclient.css" %}>
|
||||||
|
|
||||||
<link rel="icon" type="image/x-icon" href="/static/website/images/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="/static/website/images/evennia_logo.png" />
|
||||||
|
|
||||||
<!-- Import JQuery and warn if there is a problem -->
|
<!-- Import JQuery and warn if there is a problem -->
|
||||||
{% block jquery_import %}
|
{% block jquery_import %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue