So my Weather api (<— click that) is something iv been working on for a long time. I noticed this today in the console
when looking for errors.
pen.js:275 [Deprecation] getCurrentPosition and watchPosition usage in cross-origin iframes is deprecated and will be disabled in M63, around December 2017. To continue to use this feature, it must be enabled by the embedding document
using Feature Policy, e.g. <iframe allow="geolocation" ...>. See https://goo.gl/EuHzyv for more details.
Should i be worried? I used the provided code by FCC
which is…
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
$("#data").html("latitude: " + position.coords.latitude + "<br>longitude: " + position.coords.longitude);
});
}
https://www.freecodecamp.org/challenges/get-geolocation-data
Will it still work?