{"action":"closed","issue":{"url":"https://api.github.com/repos/electron/electron/issues/7218","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/7218/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/7218/comments","events_url":"https://api.github.com/repos/electron/electron/issues/7218/events","html_url":"https://github.com/electron/electron/issues/7218","id":177177633,"number":7218,"title":"Setting User Agent string?","user":{"login":"RaNo99","id":3323632,"avatar_url":"https://avatars.githubusercontent.com/u/3323632?v=3","gravatar_id":"","url":"https://api.github.com/users/RaNo99","html_url":"https://github.com/RaNo99","followers_url":"https://api.github.com/users/RaNo99/followers","following_url":"https://api.github.com/users/RaNo99/following{/other_user}","gists_url":"https://api.github.com/users/RaNo99/gists{/gist_id}","starred_url":"https://api.github.com/users/RaNo99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaNo99/subscriptions","organizations_url":"https://api.github.com/users/RaNo99/orgs","repos_url":"https://api.github.com/users/RaNo99/repos","events_url":"https://api.github.com/users/RaNo99/events{/privacy}","received_events_url":"https://api.github.com/users/RaNo99/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/electron/electron/labels/more-information-needed","name":"more-information-needed","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-15T13:33:17Z","updated_at":"2016-09-16T07:38:05Z","closed_at":"2016-09-16T07:38:05Z","body":"* Electron version: 1.3.2 prebuilt\r\n* Operating system: Windows 10\r\n\r\nI'm setting user agent with:\r\n```\r\nconst webview = document.createElement('webview');\r\nwebview.useragent = \"my user agent string\";\r\n```\r\n\r\nLater, from that webview, I call `webview.getWebContents().session.getUserAgent()`, and it returns the original one, not mine :(\r\n\r\nPlease advise what am I doing wrong. I'd like to set the User Agent string globally. Thank you."}}
{"actor":{"display_login":"RaNo99"}}