Project

General

Profile

« Previous | Next » 

Revision 003876d5

Added by koszko over 1 year ago

present appropriate error message when using popup in Private Browsing mode

View differences:

html/popup.js
132 132
	by_id(`${id}_container`).classList[["add", "remove"][show ^ i]]("hide");
133 133
}
134 134

  
135
function prepare_repo_query_view(tab_id, page_info) {
136
    const repo_query_view = new RepoQueryView(tab_id,
135
function prepare_repo_query_view(tab, page_info) {
136
    const repo_query_view = new RepoQueryView(tab,
137 137
					      () => repo_query_showing(true),
138 138
					      () => repo_query_showing(false));
139 139
    by_id("repo_query_container").prepend(repo_query_view.main_div);
......
163 163
    if (page_info) {
164 164
	show_page_info(page_info);
165 165
	if (!page_info.privileged)
166
	    prepare_repo_query_view(tab_id, page_info);
166
	    prepare_repo_query_view(tab, page_info);
167 167
    } else {
168 168
	by_id("loading_info").innerText =
169 169
	    "Page info not avaialable. Try reloading the page.";

Also available in: Unified diff