title: How do you get the device name (or hostname) from a Chrome Extension?
body: <p>Is there a way to retrieve the device name from a Chrome Extension?</p>
  
  <p>Ideally I'd like to get the same String that is displayed in the 'Other devices' menu on the new tab page... Is that piece of information available to extensions?</p>
  
  <p>Alternatively, is the hostname available?</p>
  
  <p>What I managed to get is the user-agent by accessing <code>window.navigator.userAgent</code>, but that's it...</p>