Skip to content

Commit

Permalink
Chrome headless doesn't support ||=
Browse files Browse the repository at this point in the history
Refactoring with ECMA classes #115
  • Loading branch information
dascritch committed Mar 16, 2021
1 parent 78f2223 commit c414d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/element_cpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ export class CPU_element_api {
* @private
*/
add_id_to_audiotag() {
this.audiotag.id ||= dynamically_allocated_id_prefix + String(document.CPU.count_element++);
this.audiotag.id = this.audiotag.id || dynamically_allocated_id_prefix + String(document.CPU.count_element++);
}

/**
Expand Down

0 comments on commit c414d6c

Please sign in to comment.