Skip to content

Commit 5c57650

Browse files
committed
Updated dependencies, fixed version in package.json, fixed typo in TipPrompt.
1 parent 7bce911 commit 5c57650

File tree

5 files changed

+49
-49
lines changed

5 files changed

+49
-49
lines changed

editor/ExportPrompt.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ function lerp(low: number, high: number, t: number): number {
1717
}
1818

1919
function save(blob: Blob, name: string): void {
20-
if (navigator.msSaveOrOpenBlob) {
21-
navigator.msSaveOrOpenBlob(blob, name);
20+
if ((<any>navigator).msSaveOrOpenBlob) {
21+
(<any>navigator).msSaveOrOpenBlob(blob, name);
2222
return;
2323
}
2424

editor/TipPrompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export class TipPrompt implements Prompt {
226226
case "echoSustain": {
227227
message = div(
228228
h2("Echo Volume"),
229-
p("The echo effect repeats the instrument's sound after a delay. Each echo is a little big quieter than the last, and this setting controls how much quieter."),
229+
p("The echo effect repeats the instrument's sound after a delay. Each echo is a little bit quieter than the last, and this setting controls how much quieter."),
230230
);
231231
} break;
232232
case "echoDelay": {

package-lock.json

Lines changed: 43 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "BeepBox",
3-
"version": "4.0",
3+
"version": "4.0.0",
44
"description": "BeepBox is an online tool for sketching and sharing instrumental music.",
55
"author": "John Nesky",
66
"license": "MIT",

synth/synth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ export class FilterSettings {
672672
for (const pointObject of filterObject) {
673673
const point: FilterControlPoint = new FilterControlPoint();
674674
point.type = Config.filterTypeNames.indexOf(pointObject["type"]);
675-
if (point.type == -1) point.type = FilterType.peak;
675+
if (<any>point.type == -1) point.type = FilterType.peak;
676676
if (pointObject["cutoffHz"] != undefined) {
677677
point.freq = FilterControlPoint.getRoundedSettingValueFromHz(pointObject["cutoffHz"]);
678678
} else {
@@ -1157,7 +1157,7 @@ export class Instrument {
11571157
if (instrumentObject == undefined) instrumentObject = {};
11581158

11591159
let type: InstrumentType = Config.instrumentTypeNames.indexOf(instrumentObject["type"]);
1160-
if (type == -1) type = isNoiseChannel ? InstrumentType.noise : InstrumentType.chip;
1160+
if (<any>type == -1) type = isNoiseChannel ? InstrumentType.noise : InstrumentType.chip;
11611161
this.setTypeAndReset(type, isNoiseChannel);
11621162

11631163
if (instrumentObject["preset"] != undefined) {

0 commit comments

Comments
 (0)