Battery API is not working on chrome pop up window -


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 restoring 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 navigator.webkitbattery Is undefined

Comments

Popular posts from this blog

python - Assemble mpeg file unable to play in mediaplayer -

c# - crystal report failed -

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