mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-15 06:53:07 +01:00
add repo defaults, add more chips
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
const getParam = (key) => {
|
||||
const getParam = (key,opt_default) => {
|
||||
if (opt_default === undefined) opt_default="";
|
||||
let value = RegExp("" + key + "[^&]+").exec(window.location.search);
|
||||
// Return the unescaped value minus everything starting from the equals sign or an empty string
|
||||
return decodeURIComponent(!!value ? value.toString().replace(/^[^=]+./, "") : "");
|
||||
return decodeURIComponent(!!value ? value.toString().replace(/^[^=]+./, "") : opt_default);
|
||||
};
|
||||
/**
|
||||
* add an HTML element
|
||||
|
||||
Reference in New Issue
Block a user