Please consider the following code in html/javascript:
<html>
<head>
<script>
var myObject = {};
var mySecondReference = myObject;
for (s in window)
if (window[s]===myObject)
alert("reference found: " + s);
</script>
</head>
</html>
It iterates though the window object in order to search any references to a given object. It works fine everywhere, however in Chrome/ium gives me the following warnings:
'window.webkitStorageInfo' is deprecated. Please use 'navigator.webkitTemporaryStorage' or 'navigator.webkitPersistentStorage' instead.
test.html:8 'webkitIndexedDB' is deprecated. Please use 'indexedDB' instead.
Is it something I should be scared of (especially with future versions of chrome browser)?
How can I get rid of those messages?
It's not something you have to worry about, If you don't want to see them, just filter it
var myObject = {};
var mySecondReference = myObject;
for (s in window)
if (!/webkitStorageInfo|webkitIndexedDB/.test(s) && window[s]===myObject)
alert("reference found: " + s);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With