navigator.location has been deprecated, replaced it with document.baseURI for getting the Favicon location
This commit is contained in:
parent
cf9ec54561
commit
924c6cf571
2 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||
}
|
||||
)
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue