mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
@@ -549,6 +549,7 @@ function updateDevicePageName(mac) {
|
|||||||
|
|
||||||
window.onload = function async()
|
window.onload = function async()
|
||||||
{
|
{
|
||||||
|
mac = getMac()
|
||||||
// initializeTabs();
|
// initializeTabs();
|
||||||
updateChevrons(mac);
|
updateChevrons(mac);
|
||||||
updateDevicePageName(mac);
|
updateDevicePageName(mac);
|
||||||
|
|||||||
@@ -288,7 +288,11 @@
|
|||||||
// Save device data to DB
|
// Save device data to DB
|
||||||
function setDeviceData(direction = '', refreshCallback = '') {
|
function setDeviceData(direction = '', refreshCallback = '') {
|
||||||
// Check MAC
|
// Check MAC
|
||||||
if (mac === '') {
|
mac = getMac()
|
||||||
|
|
||||||
|
if (isEmpty(mac)) {
|
||||||
|
|
||||||
|
console.error("Mac not defined");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user