1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-20 05:21:12 +02:00

add msg around script csp and add few more domains

This commit is contained in:
Kushagra Gour
2017-03-11 02:29:18 +05:30
parent a47f191878
commit a85137d4ee
3 changed files with 4 additions and 3 deletions

View File

@@ -180,6 +180,7 @@
<div class="modal__content"> <div class="modal__content">
<h1>Add Library</h1> <h1>Add Library</h1>
<h3>JavaScript</h3> <h3>JavaScript</h3>
<p style="font-size: 0.8em;opacity: 0.7;">Note: You can load external scripts from following domains: localhost, https://ajax.googleapis.com, https://code.jquery.com, https://cdnjs.cloudflare.com, https://unpkg.com, https://maxcdn.com, https://cdn77.com, https://maxcdn.bootstrapcdn.com, https://cdn.jsdelivr.net/</p>
<textarea id="js-external-js" class="full-width" id="" cols="30" rows="5" placeholder="Start typing name of a library. Put each library in new line"></textarea> <textarea id="js-external-js" class="full-width" id="" cols="30" rows="5" placeholder="Start typing name of a library. Put each library in new line"></textarea>
<h3>CSS</h3> <h3>CSS</h3>

View File

@@ -10,7 +10,7 @@
"<all_urls>", "<all_urls>",
"downloads" "downloads"
], ],
"content_security_policy": "script-src 'self' https://ajax.googleapis.com https://code.jquery.com https://cdnjs.cloudflare.com https://unpkg.com https://maxcdn.bootstrapcdn.com https://cdn.jsdelivr.net/ https://www.google-analytics.com 'unsafe-eval'; object-src 'self'", "content_security_policy": "script-src 'self' http://localhost:* https://localhost:* https://ajax.googleapis.com https://code.jquery.com https://cdnjs.cloudflare.com https://unpkg.com https://maxcdn.com https://cdn77.com https://maxcdn.bootstrapcdn.com https://cdn.jsdelivr.net/ https://www.google-analytics.com 'unsafe-eval'; object-src 'self'",
"options_ui": { "options_ui": {
"page": "options.html", "page": "options.html",
"chrome_style": true "chrome_style": true

View File

@@ -373,8 +373,8 @@ li.CodeMirror-hint-active {
position: fixed; position: fixed;
top: 5vh; top: 5vh;
left: 50%; left: 50%;
width: 60vw; width: 68vw;
margin-left: -30vw; margin-left: -34vw;
max-width: 90vw; max-width: 90vw;
height: auto; height: auto;
z-index: 2000; z-index: 2000;