|
|
|
@ -45,7 +45,7 @@ class app.views.JqueryPage extends app.views.BasePage
|
|
|
|
|
|
|
|
|
|
fixIframeSource: (source) ->
|
|
|
|
|
source = source.replace '"/resources/', '"https://api.jquery.com/resources/' # attr(), keydown()
|
|
|
|
|
source.replace '</head>', """
|
|
|
|
|
source = source.replace '</head>', """
|
|
|
|
|
<style>
|
|
|
|
|
html, body { border: 0; margin: 0; padding: 0; }
|
|
|
|
|
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
|
|
|
|
@ -60,3 +60,4 @@ class app.views.JqueryPage extends app.views.BasePage
|
|
|
|
|
</script>
|
|
|
|
|
</head>
|
|
|
|
|
"""
|
|
|
|
|
source.replace /<script>/gi, '<script nonce="devdocs">'
|
|
|
|
|