- Where Developers Learn, Share, & Build Careers
Chrome is a way to get battery objects in the pop up window
I use this code To create pop ups
chrome.windows.create ({'url': 'mypop.html', 'type': 'popup'}, function (window) {}) ; But there is a problem redeeming the battery object using this code
var battery = navigator.webkitbattery; When I am calling a javascript file on mypop.html page
Is this a Chrome security issue that rejects the battery object on the popup page?
It seems that it has been removed from Chrome because Nevigetrkvebkitbatri Is undefined
Comments
Post a Comment