/* 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/>. */
export const getOpenedURLs = state => state.tabs.urls;
// Return the list of source objects which are opened. // i.e. sources which have a tab currently opened.
export const getOpenedSources = state => state.tabs.openedSources;
export const getPrettyPrintedURLs = state => state.tabs.prettyPrintedURLs;
export function tabExists(state, source) { // Minimized(=generatedSource) and its related pretty printed source will both share the same tab, // so we should consider that the tab is already opened if the tab relates to the passed minimized source. return getOpenedSources(state).some(
s => s == (source.isPrettyPrinted ? source.generatedSource : source)
);
}
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.