We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce247c commit 08bc799Copy full SHA for 08bc799
js/helpinject.js
@@ -60,12 +60,8 @@
60
} catch (e) {
61
console.error('Unable to parse release information', e);
62
}
63
- if (typeof lastest.tag_name !== "undefined") {
64
- // Run the callback
65
- cb(semverRegex().test(version) ? semverNumbersOnly(semverRegex().exec(version)[0]) : null);
66
- } else {
67
- console.error('GitHub did not return the expected data');
68
- }
+ // Run the callback
+ cb(semverRegex().test(lastest.tag_name) ? semverNumbersOnly(semverRegex().exec(lastest.tag_name)[0]) : null);
69
} else {
70
// Something went wrong. Fail quietly
71
console.error('Unable to fetch release information');
0 commit comments