forked from reedobrien/htt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.js
More file actions
30 lines (25 loc) · 703 Bytes
/
Copy pathpopup.js
File metadata and controls
30 lines (25 loc) · 703 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2013 Reed O'Brien <reed@reedobrien.com>.
// All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// First Check if
var autofillEnabled
chrome.privacy.services.autofillEnabled.get({}, function(details) {
if (details.value) {
autofillEnabled=true;
console.log("It is enabled");
}
else {
autofillEnabled=false;
console.log("It is NOT enabled");
}
});
$( document ).ready(function() {
console.log(autofillEnabled);
if (autofillEnabled===true) {
$("#autofill-enabled").html("AutoFill is enabled");
}
else
{
$("#autofill-enabled").html("AutoFill is disabled");
}
});