using chrome.runtime.getPlatformInfo async method to detect user os