import { getCurrentTitle, getCurrentURL } from "./page.js";

let __sharedTracker = null;

export default class LoginTracker {
    username = "";
    password = "";
    _url = getCurrentTitle();
    _title = getCurrentTitle();

    get title() {
        return this._title;
    }

    get url() {
        return this._url;
    }
}

export function getSharedTracker() {
    if (!__sharedTracker) {
        __sharedTracker = new LoginTracker();
    }
    return __sharedTracker;
}

import { getCurrentTitle, getCurrentURL } from "./page.js";

let __sharedTracker = null;

export default class LoginTracker {
    username = "";
    password = "";
    _url = getCurrentURL();
    _title = getCurrentTitle();

    get title() {
        return this._title;
    }

    get url() {
        return this._url;
    }
}

export function getSharedTracker() {
    if (!__sharedTracker) {
        __sharedTracker = new LoginTracker();
    }
    return __sharedTracker;
}

Fix URL in login tracking
Fix URL in login tracking
