Skip to content

Commit

Permalink
Avoid activating geolocation in webkit
Browse files Browse the repository at this point in the history
Accessing geolocation activates the geolocation service which
currently blocks page caching. Checking for the `geolocation` property
avoids this.

https://bugs.webkit.org/show_bug.cgi?id=43956
  • Loading branch information
josh committed Apr 13, 2012
1 parent bc8f7d8 commit 119d0f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ window.Modernizr = (function( window, document, undefined ) {
* gist.github.com/366184
*/
tests['geolocation'] = function() {
return !!navigator.geolocation;
return 'geolocation' in navigator;
};

// Per 1.6:
Expand Down

0 comments on commit 119d0f8

Please sign in to comment.