Project

General

Profile

« Previous | Next » 

Revision 6247f163

Added by koszko about 2 years ago

enable toggling of global script blocking policy\n\nThis commit also introduces `light_storage' module which is later going to replace the storage code we use right now.\nAlso included is a hack to properly display scrollbars under Mozilla (needs testing on newer Mozilla browsers).

View differences:

html/display-panel.js
14 14
 *** temporarily, before all storage access gets reworked.
15 15
 * IMPORT get_remote_storage
16 16
 * IMPORT get_import_frame
17
 * IMPORT init_default_policy_dialog
17 18
 * IMPORT query_all
18 19
 * IMPORT CONNECTION_TYPE
19 20
 * IMPORT is_privileged_url
......
243 244
    if (type === "settings") {
244 245
	let [pattern, settings] = data;
245 246

  
246
	settings = settings || {};
247 247
	blocked_span.textContent = settings.allow ? "no" : "yes";
248 248

  
249 249
	if (pattern) {
......
254 254
	    view_pattern_but.addEventListener("click", settings_opener);
255 255
	} else {
256 256
	    pattern_span.textContent = "none";
257
	    blocked_span.textContent = blocked_span.textContent + " (default)";
257 258
	}
258 259

  
259 260
	const components = settings.components;
......
549 550

  
550 551
async function main()
551 552
{
553
    init_default_policy_dialog();
554

  
552 555
    storage = await get_remote_storage();
553 556
    import_frame = await get_import_frame();
554 557
    import_frame.onclose = () => show_queried_view_radio.checked = true;

Also available in: Unified diff