mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
Remove default parameter in updateInstructions()
Some browsers do not support the use of default parameters. Moving the logic that sets `step` to null if undefined into the function body allows those browsers to render the tutorial correctly.
This commit is contained in:
parent
368a38c04d
commit
3ed5803f50
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ export class AppComponent implements OnInit {
|
|||
}
|
||||
|
||||
// called when tutorial commands need to be displayed
|
||||
updateInstructions(step = null) {
|
||||
updateInstructions(step?) {
|
||||
// if step is given, we calculate the new index
|
||||
let totalSteps = this.instructionsArray.length - 1;
|
||||
switch(step) {
|
||||
|
|
Loading…
Add table
Reference in a new issue