{"action":"created","issue":{"url":"https://api.github.com/repos/r0x0r/pywebview/issues/283","repository_url":"https://api.github.com/repos/r0x0r/pywebview","labels_url":"https://api.github.com/repos/r0x0r/pywebview/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/r0x0r/pywebview/issues/283/comments","events_url":"https://api.github.com/repos/r0x0r/pywebview/issues/283/events","html_url":"https://github.com/r0x0r/pywebview/issues/283","id":381098441,"node_id":"MDU6SXNzdWUzODEwOTg0NDE=","number":283,"title":"Problem loading local html","user":{"login":"AnselmC","id":22545864,"node_id":"MDQ6VXNlcjIyNTQ1ODY0","avatar_url":"https://avatars0.githubusercontent.com/u/22545864?v=4","gravatar_id":"","url":"https://api.github.com/users/AnselmC","html_url":"https://github.com/AnselmC","followers_url":"https://api.github.com/users/AnselmC/followers","following_url":"https://api.github.com/users/AnselmC/following{/other_user}","gists_url":"https://api.github.com/users/AnselmC/gists{/gist_id}","starred_url":"https://api.github.com/users/AnselmC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnselmC/subscriptions","organizations_url":"https://api.github.com/users/AnselmC/orgs","repos_url":"https://api.github.com/users/AnselmC/repos","events_url":"https://api.github.com/users/AnselmC/events{/privacy}","received_events_url":"https://api.github.com/users/AnselmC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-15T10:34:59Z","updated_at":"2018-11-16T07:44:45Z","closed_at":null,"author_association":"NONE","body":"### Specification\r\n- Platform: macOS\r\n- Version: 10.13.6\r\n\r\n### Description\r\nHi,\r\nI've just started using pywebview and am having trouble loading/linking local html/css/js files.\r\n`webview.create_window('Test', 'assets/index.html')` \r\nonly shows a white screen whereas \r\n```\r\ndef load_html():\r\n    with open('assets/index.html') as html:\r\n        webview.load_html(str(html.read()))\r\n\r\n\r\nif __name__ == '__main__':\r\n    t = threading.Thread(target=load_html)\r\n    t.start()\r\n    webview.create_window('Test')\r\n```\r\ndoesn't load the image or stylesheet referenced in the HTML:\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n  <link rel=\"stylesheet\" href=\"style.css\">\r\n  <meta charset=\"utf-8\"/>\r\n</head>\r\n<body bgcolor=\"#0099ff\">\r\n\t<div align=\"center\">\r\n            <img src=\"images/logo.jpg\">\r\n            <h1>TEST</h1>\r\n        </div>\r\n</body>\r\n</html>\r\n```\r\nI'm probably missing something very obvious, any help is appreciated. Thanks!"},"comment":{"url":"https://api.github.com/repos/r0x0r/pywebview/issues/comments/439308892","html_url":"https://github.com/r0x0r/pywebview/issues/283#issuecomment-439308892","issue_url":"https://api.github.com/repos/r0x0r/pywebview/issues/283","id":439308892,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTMwODg5Mg==","user":{"login":"r0x0r","id":1549657,"node_id":"MDQ6VXNlcjE1NDk2NTc=","avatar_url":"https://avatars1.githubusercontent.com/u/1549657?v=4","gravatar_id":"","url":"https://api.github.com/users/r0x0r","html_url":"https://github.com/r0x0r","followers_url":"https://api.github.com/users/r0x0r/followers","following_url":"https://api.github.com/users/r0x0r/following{/other_user}","gists_url":"https://api.github.com/users/r0x0r/gists{/gist_id}","starred_url":"https://api.github.com/users/r0x0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r0x0r/subscriptions","organizations_url":"https://api.github.com/users/r0x0r/orgs","repos_url":"https://api.github.com/users/r0x0r/repos","events_url":"https://api.github.com/users/r0x0r/events{/privacy}","received_events_url":"https://api.github.com/users/r0x0r/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T07:44:45Z","updated_at":"2018-11-16T07:44:45Z","author_association":"OWNER","body":"Try either\r\n`webview.create_window('Test', 'assets/index.html')`\r\n\r\nor set BASE tag in your html https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base"}}
{"actor":{"display_login":"r0x0r"}}