function sendAutolock() {
  chrome.storage.local.get(["autolock"], function(items) {
    if (items.autolock != undefined) {
      $(".autolock input").prop("checked", false);
      $("#" + JSON.parse(items.autolock).type).prop("checked", true);
      $("#mn").val(JSON.parse(items.autolock).mn);
      setAutolock(items.autolock);
      $("#mn").css(
        "visibility",
        JSON.parse(items.autolock).type == "idle" ? "visible" : "hidden"
      );
    }
  });
}
// Check if autolock and set it to background
Check if autolock and set it to background
Check if autolock and set it to background
function sendAutolock() {
  chrome.storage.local.get(["autolock"], function(items) {
    if (items.autolock != undefined) {
      $(".autolock input").prop("checked", false);
      $("#" + JSON.parse(items.autolock).type).prop("checked", true);
      $("#mn").val(JSON.parse(items.autolock).mn);
      setAutolock(items.autolock);
      $("#mn").css(
        "visibility",
        JSON.parse(items.autolock).type == "idle" ? "visible" : "hidden"
      );
    }
  });
}
function sendAutolock ( ) { chrome . storage . local . get ( [ "autolock" ] , function ( items ) { if ( items . autolock != undefined ) { $ ( ".autolock input" ) . prop ( "checked" , false ) ; $ ( "#" + JSON . parse ( items . autolock ) . type ) . prop ( "checked" , true ) ; $ ( "#mn" ) . val ( JSON . parse ( items . autolock ) . mn ) ; setAutolock ( items . autolock ) ; $ ( "#mn" ) . css ( "visibility" , JSON . parse ( items . autolock ) . type == "idle" ? "visible" : "hidden" ) ; } } ) ; }
Check if autolock and set it to background
Check if autolock and set it to background