{"action":"closed","issue":{"url":"https://api.github.com/repos/electron/electron/issues/6884","repository_url":"https://api.github.com/repos/electron/electron","labels_url":"https://api.github.com/repos/electron/electron/issues/6884/labels{/name}","comments_url":"https://api.github.com/repos/electron/electron/issues/6884/comments","events_url":"https://api.github.com/repos/electron/electron/issues/6884/events","html_url":"https://github.com/electron/electron/issues/6884","id":171691455,"number":6884,"title":"webfontloader in BrowserWindow doesn't work","user":{"login":"kreck","id":4924763,"avatar_url":"https://avatars.githubusercontent.com/u/4924763?v=3","gravatar_id":"","url":"https://api.github.com/users/kreck","html_url":"https://github.com/kreck","followers_url":"https://api.github.com/users/kreck/followers","following_url":"https://api.github.com/users/kreck/following{/other_user}","gists_url":"https://api.github.com/users/kreck/gists{/gist_id}","starred_url":"https://api.github.com/users/kreck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kreck/subscriptions","organizations_url":"https://api.github.com/users/kreck/orgs","repos_url":"https://api.github.com/users/kreck/repos","events_url":"https://api.github.com/users/kreck/events{/privacy}","received_events_url":"https://api.github.com/users/kreck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-17T15:43:15Z","updated_at":"2016-08-17T16:02:05Z","closed_at":"2016-08-17T16:02:05Z","body":"* Electron version: v1.3.3\r\n* Operating system: Mac OS X El Capitan 10.11.3\r\n\r\nI couldn't find anything on the web, in the issues or anywhere else, so an issue it is.\r\n\r\n**Situation**: I'm running an Angular 1 application in an Electron BrowserWindow. What i need to do is dynamic font loading, so i opted for [WebFontLoader](https://github.com/typekit/webfontloader).\r\n\r\n**Issue** WebFontloader does not work in the BrowswerWindow, throwing `Uncaught ReferenceError: WebFont is not defined` when i try to access `WebFont`\r\n\r\n**What i tried**\r\n- Check that WebFontLoader works in Chrome, Safari and Firefox, both when loading from CDN or from disk (bower package).  It does in all cases and scenarios.\r\n- Make sure that the library is loaded correctly and that the issue is not due to asynchronous loading of the library\r\n- Adjust the BrowserWindow `webPreferences` and `webSecurity` settings, basically allowing anything. Didn't help.\r\n- Check if the --enable-logging command line switch gives some helpful insights. It didn't.\r\n\r\nAny help resolving this is much appreciated.\r\n\r\n"}}
{"actor":{"display_login":"kevinsawicki"}}