Skip to content

Commit 374945f

Browse files
authored
Fix bug with ready event (#544)
The `return` here is incorrect and this is causing the function to be exiting too early.
1 parent d6c1021 commit 374945f

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

bumpver.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpver]
2-
current_version = "0.30.0"
2+
current_version = "0.31.0"
33
version_pattern = "MAJOR.MINOR.PATCH[TAG]"
44
commit_message = "Release {new_version}"
55
tag_message = "{new_version}"

dist/readthedocs-addons.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/readthedocs-addons.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@readthedocs/addons",
3-
"version": "0.30.0",
3+
"version": "0.31.0",
44
"description": "Read the Docs Addons to embed into documentation pages",
55
"main": "dist/readthedocs-addons.js",
66
"scripts": {

src/readthedocs-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function getReadTheDocsConfig(sendUrlParam) {
108108
return response.json();
109109
})
110110
.then((data) => {
111-
return dispatchEvent(
111+
dispatchEvent(
112112
EVENT_READTHEDOCS_ADDONS_INTERNAL_DATA_READY,
113113
document,
114114
new ReadTheDocsEventData(data),

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { EVENT_READTHEDOCS_URL_CHANGED } from "./events";
2323
export const ADDONS_API_VERSION = "1";
2424
export const ADDONS_API_ENDPOINT = "/_/addons/";
2525
// This is managed by bumpver automatically
26-
export const CLIENT_VERSION = "0.30.0";
26+
export const CLIENT_VERSION = "0.31.0";
2727

2828
// WEBPACK_ variables come from Webpack's DefinePlugin and Web Test Runner's RollupReplace plugin
2929
export const IS_TESTING =

0 commit comments

Comments
 (0)