navigator.location has been deprecated, replaced it with document.baseURI for getting the Favicon location

This commit is contained in:
Tobias Schmidl 2015-02-18 15:48:28 +01:00
parent cf9ec54561
commit 924c6cf571
No known key found for this signature in database
GPG key ID: 222F0236A1554441
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
// ==UserScript==
// @name Facebook desktop notification
// @namespace https://www.schtobia.de/
// @version 0.2.5
// @version 0.2.6
// @description Facebook desktop notification (based on HTML5)
// @include http*://www.facebook.com/*
// @include http*://facebook.com/*
@ -63,7 +63,7 @@ notify = function()
{
"dir" : "auto",
"body" : msg,
"icon" : navigator.location.origin + "/favicon.ico",
"icon" : document.baseURI + "/favicon.ico",
"lang" : "en-US"
}
)

View file

@ -1,7 +1,7 @@
// ==UserScript==
// @name Google+ desktop notification
// @namespace https://www.schtobia.de/
// @version 0.2.5
// @version 0.2.6
// @description Google+ desktop notification (based on HTML5)
// @include http://plus.google.com/
// @include https://plus.google.com/
@ -50,7 +50,7 @@ notify = function()
{
"dir" : "auto",
"body" : msg,
"icon" : navigator.location.origin + "/favicon.ico",
"icon" : document.baseURI + "/favicon.ico",
"lang" : "en-US"
}
)