Skip to content

Commit d2c826f

Browse files
authored
chore: fix version selector
1 parent 755a644 commit d2c826f

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

build/_includes/header.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,26 +85,12 @@
8585
const versionsJSON = window.location.origin.concat("/docs_versions.json");
8686
const versionJSON = window.location.origin.concat("/version.json");
8787

88-
// const versions = {
89-
// "versions": [
90-
// {
91-
// "version": "7.0",
92-
// "url": "https://docs.nativescript.org"
93-
// },
94-
// {
95-
// "version": "6.0",
96-
// "url": "https://v6.docs.nativescript.org"
97-
// },
98-
// ]
99-
// }
100-
// this.versions = versions.versions;
101-
10288
$.getJSON(versionsJSON, function (data) {
10389
this.versions = data.versions;
104-
})
90+
}.bind(this))
10591
$.getJSON(versionJSON, function (data) {
10692
this.current = data.current
107-
})
93+
}.bind(this))
10894
},
10995

11096
// data

0 commit comments

Comments
 (0)