discord-sandboxed/index.html
2020-05-04 18:34:41 -07:00

19 lines
846 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!--style-src 'self' 'unsafe-inline' needs evaluation, some conflict with node_modules\electron\dist\resources\electron.asar\renderer\web-view\web-view-impl.js-->
<meta http-equiv="Content-Security-Policy" content="default-src none; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link type="text/css" rel="stylesheet" href="./css/style.css">
</head>
<body>
<div id="overlay"></div>
<!-- https://electronjs.org/docs/tutorial/security#15-disable-the-remote-module -->
<webview id="discord" enableremotemodule="false" webpreferences="useragent='Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko'" partition="persist:discord" src="https://discord.com/login"></webview>
<script src="./renderer.js"></script>
</body>
</html>