I am trying to use the sample chrome extension provided here to get an understanding of how the chrome idle API works: https://developer.chrome.com/extensions/samples#search:idle
I have also looked at this similar question: Google chrome - extension chrome idle not working but it didn't seem to help either. However, I am running into difficulties actually getting it to work. Without changing anything, I loaded the extension files into developer mode on Chrome. Upon clicking the extension icon, the popup appears which is meant to query the state every second. However, the state is not being updated if even if I click inside the popup window. Upon inspection of the console, I found the following error:
Uncaught TypeError: Cannot set property 'innerHTML' of null at renderHistory (history.js:66) at HTMLDocument. (history.js:82)
Is anyone else able to run this sample extension? I would appreciate some help in trying to figure this out.