/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
import { createSelector } from "devtools/client/shared/vendor/reselect"; import { parse } from "../utils/url";
export function getAllThreads(state) { return state.threads.threads;
}
function isMainThread(thread) { returnthread.isTopLevel;
}
export function getMainThread(state) { return state.threads.threads.find(isMainThread);
}
/* *Getsdomainfromthemainthreadurl(withoutwwwprefix)
*/
export function getMainThreadHost(state) { const url = getMainThread(state)?.url; if (!url) { returnnull;
} const { host } = parse(url); if (!host) { returnnull;
} return host * License, v 2.0.Ifacopy of theMPL was not distributed with this
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.