Skip to content

Commit 832cf7b

Browse files
committed
Protocol-agnostic CORS test URLs
1 parent 49a6e3d commit 832cf7b

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

test/v1.0-sync/_embed_code.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="DC-note-42283" class="DC-note-container"></div>
2-
<script src="http://notes-assets.dcloud.org/test/v1.0-sync/loader.js"></script>
2+
<script src="//notes-assets.dcloud.org/test/v1.0-sync/loader.js"></script>
33
<script>
44
dc.embed.loadNote('https://www.documentcloud.org/documents/282753-lefler-thesis/annotations/42283.js', {
55
container: '#DC-note-42283'

test/v1.0-sync/oembed.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>DocumentCloud Note oEmbed Test</h1>
3131
<script src="/src/js/vendor/jquery/dist/jquery.js"></script>
3232
<script type="text/javascript">
3333
$(function(){
34-
$.get('http://notes-assets.dcloud.org/test/v1.0-sync/_oembed_code.json').done(function(response){
34+
$.get('//notes-assets.dcloud.org/test/v1.0-sync/_oembed_code.json').done(function(response){
3535
$('#oembed-ajax-wrapper').html(response.html);
3636
});
3737
});

test/v1.0-sync/pjax_content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="DC-note-42273" class="DC-note-container"></div>
2-
<script src="http://notes-assets.dcloud.org/test/v1.0-sync/loader.js"></script>
2+
<script src="//notes-assets.dcloud.org/test/v1.0-sync/loader.js"></script>
33
<script>
44
dc.embed.loadNote('https://www.documentcloud.org:443/documents/282753-lefler-thesis/annotations/42273.js', {
55
container: '#DC-note-42273'

test/v1.1-async/_embed_code.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="DC-note-42283" class="DC-note-container"></div>
2-
<script src="http://notes-assets.dcloud.org/test/v1.1-async/loader.js"></script>
2+
<script src="//notes-assets.dcloud.org/test/v1.1-async/loader.js"></script>
33
<script>
44
dc.embed.loadNote('https://www.documentcloud.org/documents/282753-lefler-thesis/annotations/42283.js', {
55
container: '#DC-note-42283'

test/v1.1-async/oembed.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h1>DocumentCloud Note oEmbed Test</h1>
3131
<script src="/src/js/vendor/jquery/dist/jquery.js"></script>
3232
<script type="text/javascript">
3333
$(function(){
34-
$.get('http://notes-assets.dcloud.org/test/v1.1-async/_oembed_code.json').done(function(response){
34+
$.get('//notes-assets.dcloud.org/test/v1.1-async/_oembed_code.json').done(function(response){
3535
$('#oembed-ajax-wrapper').html(response.html);
3636
});
3737
});

test/v1.1-async/pjax_content.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="DC-note-42273" class="DC-note-container"></div>
2-
<script src="http://notes-assets.dcloud.org/test/v1.1-async/loader.js"></script>
2+
<script src="//notes-assets.dcloud.org/test/v1.1-async/loader.js"></script>
33
<script>
44
dc.embed.loadNote('https://www.documentcloud.org:443/documents/282753-lefler-thesis/annotations/42273.js', {
55
container: '#DC-note-42273'

0 commit comments

Comments
 (0)