Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Little fixes

  • Loading branch information...
commit 9f65c8878f2691c5085dc96a9521ea515ed71800 1 parent b63cde1
myfreeweb authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 dockbadger.js
6 dockbadger.js
View
@@ -14,7 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
*/
-dockBadger = {
+window.dockBadger = {
init: function() {
window.original_title = document.title;
return dockBadger;
@@ -28,11 +28,11 @@ dockBadger = {
if (typeof(window.fluid) != 'undefined') {
window.fluid.dockBadge = number;
}
- else if (typeof(window.platform.icon) != 'undefined') {
+ else if (typeof(window.platform) != 'undefined') {
window.platform.icon().badgeText = number;
}
else {
- document.title = '(' + number + ') ' + window.orig_title;
+ document.title = '(' + number + ') ' + window.original_title;
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.