Skip to content

Commit fdc2de3

Browse files
committed
[tern demo] Use unpkg, now that the URL structure of ternjs.net changed
1 parent 58c5534 commit fdc2de3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

demo/tern.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
<script src="../addon/dialog/dialog.js"></script>
1414
<script src="../addon/hint/show-hint.js"></script>
1515
<script src="../addon/tern/tern.js"></script>
16-
<script src="//ternjs.net/node_modules/acorn/dist/acorn.js"></script>
17-
<script src="//ternjs.net/node_modules/acorn-loose/dist/acorn-loose.js"></script>
18-
<script src="//ternjs.net/node_modules/acorn-walk/dist/walk.js"></script>
16+
<script src="https://unpkg.com/acorn/dist/acorn.js"></script>
17+
<script src="https://unpkg.com/acorn-loose/dist/acorn-loose.js"></script>
18+
<script src="https://unpkg.com/acorn-walk/dist/walk.js"></script>
1919
<script src="//ternjs.net/doc/demo/polyfill.js"></script>
20-
<script src="//ternjs.net/lib/signal.js"></script>
21-
<script src="//ternjs.net/lib/tern.js"></script>
22-
<script src="//ternjs.net/lib/def.js"></script>
23-
<script src="//ternjs.net/lib/comment.js"></script>
24-
<script src="//ternjs.net/lib/infer.js"></script>
25-
<script src="//ternjs.net/plugin/doc_comment.js"></script>
20+
<script src="https://unpkg.com/tern/lib/signal.js"></script>
21+
<script src="https://unpkg.com/tern/lib/tern.js"></script>
22+
<script src="https://unpkg.com/tern/lib/def.js"></script>
23+
<script src="https://unpkg.com/tern/lib/comment.js"></script>
24+
<script src="https://unpkg.com/tern/lib/infer.js"></script>
25+
<script src="https://unpkg.com/tern/plugin/doc_comment.js"></script>
2626
<style>
2727
.CodeMirror {border: 1px solid #ddd;}
2828
</style>
@@ -109,7 +109,7 @@ <h2>Tern Demo</h2>
109109
}
110110

111111
var server;
112-
getURL("//ternjs.net/defs/ecmascript.json", function(err, code) {
112+
getURL("https://unpkg.com/tern/defs/ecmascript.json", function(err, code) {
113113
if (err) throw new Error("Request for ecmascript.json: " + err);
114114
server = new CodeMirror.TernServer({defs: [JSON.parse(code)]});
115115
editor.setOption("extraKeys", {

0 commit comments

Comments
 (0)