Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 3fa302f

Browse files
committed
Fix: autoload webwork
1 parent 491aca8 commit 3fa302f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webpack.index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ export function runestone_auto_import() {
111111
)
112112
.get()
113113
);
114+
// webwork questions are not wrapped in div with a data-component so we have to check a different way
115+
if (document.querySelector(".webwork-button")) {
116+
s.add("webwork");
117+
}
114118

115119
// Load JS for each of the components found.
116120
const a = [...s].map((value) =>

0 commit comments

Comments
 (0)