Add electron fixes for jquery not being defined

This commit is contained in:
Jeremy Zhang 2017-12-12 00:48:05 +00:00
parent ca8ffa984b
commit 5dae7fe822

View File

@ -224,6 +224,14 @@
</div>
</footer>
<!-- Electron fix -->
<script>
if (typeof module === "object") {
window.module = module;
module = undefined;
}
</script>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js" integrity="sha256-uWtSXRErwH9kdJTIr1swfHFJn/d/WQ6s72gELOHXQGM=" crossorigin="anonymous"></script>
@ -359,5 +367,12 @@
</script>
<script type="text/javascript" src="{{ url_for('static', filename='js/embed.js') }}"></script>
<!-- Electron fix -->
<script>
if (window.module) {
module = window.module;
}
</script>
</body>
</html>