Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: betaflight/betaflight-configurator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fd1c58e86fb534760cba4f9f964c0ca465e62d74
Choose a base ref
..
head repository: betaflight/betaflight-configurator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a990b77a8a56f6a5a79aa7fc320bb8ace5afa0d6
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/js/main.js
4 changes: 3 additions & 1 deletion src/js/main.js
Original file line number Diff line number Diff line change
@@ -180,7 +180,9 @@ function startProcess() {
} else if (GUI.isCordova()) {

if (typeof String.prototype.replaceAll === "undefined") {
String.prototype.replaceAll = (match, replace) => this.replace(new RegExp(match, 'g'), () => replace);
String.prototype.replaceAll = (match, replace) => {
return this.replace(new RegExp(match, 'g'), () => replace);
};
}

window.addEventListener('beforeunload', closeHandler);