- 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

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -