Skip to content

Commit

Permalink
[tern demo] Use unpkg, now that the URL structure of ternjs.net changed
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Sep 28, 2020
1 parent 58c5534 commit fdc2de3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions demo/tern.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@
<script src="../addon/dialog/dialog.js"></script>
<script src="../addon/hint/show-hint.js"></script>
<script src="../addon/tern/tern.js"></script>
<script src="//ternjs.net/node_modules/acorn/dist/acorn.js"></script>
<script src="//ternjs.net/node_modules/acorn-loose/dist/acorn-loose.js"></script>
<script src="//ternjs.net/node_modules/acorn-walk/dist/walk.js"></script>
<script src="https://unpkg.com/acorn/dist/acorn.js"></script>
<script src="https://unpkg.com/acorn-loose/dist/acorn-loose.js"></script>
<script src="https://unpkg.com/acorn-walk/dist/walk.js"></script>
<script src="//ternjs.net/doc/demo/polyfill.js"></script>
<script src="//ternjs.net/lib/signal.js"></script>
<script src="//ternjs.net/lib/tern.js"></script>
<script src="//ternjs.net/lib/def.js"></script>
<script src="//ternjs.net/lib/comment.js"></script>
<script src="//ternjs.net/lib/infer.js"></script>
<script src="//ternjs.net/plugin/doc_comment.js"></script>
<script src="https://unpkg.com/tern/lib/signal.js"></script>
<script src="https://unpkg.com/tern/lib/tern.js"></script>
<script src="https://unpkg.com/tern/lib/def.js"></script>
<script src="https://unpkg.com/tern/lib/comment.js"></script>
<script src="https://unpkg.com/tern/lib/infer.js"></script>
<script src="https://unpkg.com/tern/plugin/doc_comment.js"></script>
<style>
.CodeMirror {border: 1px solid #ddd;}
</style>
Expand Down Expand Up @@ -109,7 +109,7 @@ <h2>Tern Demo</h2>
}

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

0 comments on commit fdc2de3

Please sign in to comment.