Added a platform check.

`initialize` in chrome.idle isn't implemented on iOS.