Skip to content

Commit 093101c

Browse files
continue change to tool terminology where possible
1 parent f346d47 commit 093101c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/scripts.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,19 +215,19 @@ function clearStepsAfterCursor(fieldsets, state) {
215215
}
216216

217217
// function to render "license recommendation",
218-
// if valid license from state.parts and/or state.current
218+
// if valid tool from state.parts and/or state.current
219219
function renderLicenseRec(state) {
220-
// document.querySelector('#license-recommendation header h3').textContent = state.props.license;
220+
// document.querySelector('#license-recommendation header h3').textContent = state.props.tool;
221221

222222
if (state.props.tool != 'unknown' ) {
223223
document.querySelector('#license-recommendation').classList.remove('disable');
224224

225225
let tool = state.props.tool;
226-
let template = document.getElementById(license);
226+
let template = document.getElementById(tool);
227227
let templateContent = template.content.cloneNode(true);
228228
document.querySelector('#license-recommendation .license').textContent = '';
229229
document.querySelector('#license-recommendation .license').appendChild(templateContent);
230-
console.log('license set to: ' + tool);
230+
console.log('tool set to: ' + tool);
231231
}
232232
else if (state.props.tool == 'unknown') {
233233
document.querySelector('#license-recommendation').classList.add('disable');
@@ -277,7 +277,7 @@ function renderMarkYourWork(state) {
277277

278278
// let phrase = '(c) ' + workCreationYear + ' ' + title + ' is licensed under ';
279279

280-
// document.querySelector('#mark-your-work .mark-holder').textContent = phrase + state.props.license;
280+
// document.querySelector('#mark-your-work .mark-holder').textContent = phrase + state.props.tool;
281281
renderMarkingFormats(state);
282282

283283
}

0 commit comments

Comments
 (0)