- 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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -