Skip to content

Commit

Permalink
fix marked version
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Apr 3, 2019
1 parent f88029a commit 9d2c93e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/demo/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ function setInitialVersion() {
})
.then(function () {
if (search.version) {
if (!markedVersions[search.version]) {
if (markedVersions[search.version]) {
return search.version;
} else {
var match = search.version.match(/^(\w+):(.+)$/);
if (match) {
switch (match[1]) {
Expand Down

0 comments on commit 9d2c93e

Please sign in to comment.