Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92e77d2

Browse files
authored
editorial: fix buildRoleInfo.js (#2747)
Removes hack 1 of 3 (which is no longer needed after #2745) Fixes a regression from #2745
1 parent 5ebc07b commit 92e77d2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

common/script/buildRoleInfo.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@ document.URL = "";
99

1010
const script = fs.readFileSync("./common/script/aria.js").toString();
1111

12-
const scriptWithoutRespecUI = script.substring(0, script.indexOf("require(")); // TODO: HACK remove everything past "require(" (NOTE: if we went only with this SSG approach, we could remove that end of aria.js and this hack)
13-
1412
// HACK call ariaAttributeReferences() and log out roleInfo with prefix
1513
const scriptAddition = 'ariaAttributeReferences();console.log("/* This file is generated - do not modify */ var roleInfo = "+JSON.stringify(roleInfo, null, 2));';
1614

1715
// HACK: eval!
18-
eval(scriptWithoutRespecUI + scriptAddition);
16+
eval(script + scriptAddition);

0 commit comments

Comments
 (0)