- nella lista circuiti ora si vedono tutti gli annunci del circuito stesso
This commit is contained in:
@@ -4358,17 +4358,13 @@ export const tools = {
|
||||
|
||||
|
||||
SetBit(myval: any, bit: any) {
|
||||
// tslint:disable-next-line:no-bitwise
|
||||
let myvalout = myval
|
||||
myvalout |= bit
|
||||
return myvalout
|
||||
// Utilizza l'operatore OR per abilitare il bit specificato
|
||||
return myval | bit
|
||||
},
|
||||
|
||||
UnSetBit(myval: any, bit: any) {
|
||||
// tslint:disable-next-line:no-bitwise
|
||||
let myvalout = myval
|
||||
myvalout &= ~bit
|
||||
return myvalout
|
||||
// Utilizza l'operatore AND con il complemento per disabilitare il bit specificato
|
||||
return myval & ~bit
|
||||
},
|
||||
|
||||
getUnique(arr: any, comp: any) {
|
||||
@@ -9550,13 +9546,13 @@ export const tools = {
|
||||
try {
|
||||
// Crea un nuovo oggetto URL a partire dall'input
|
||||
const parsedUrl = new URL(url);
|
||||
|
||||
|
||||
// Estrae solo il protocollo, l'host e la porta
|
||||
const { protocol, host } = parsedUrl;
|
||||
|
||||
|
||||
// Ricostruisce il link principale
|
||||
const mainLink = `${host}`;
|
||||
|
||||
|
||||
return mainLink;
|
||||
} catch (error) {
|
||||
console.error('Errore durante l\'elaborazione dell\'URL:', error);
|
||||
|
||||
Reference in New Issue
Block a user