Skip to content

Commit

Permalink
ب
Browse files Browse the repository at this point in the history
  • Loading branch information
xElkomy committed Aug 6, 2023
1 parent 2ae3ae6 commit 47df582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -672,3 +672,4 @@ may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.

10 changes: 5 additions & 5 deletions settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ document.getElementById("global_float").onclick=function () {
chrome.storage.local.get(["global_float"], function(settings){
// console.log(settings);
chrome.storage.local.set({"global_float": settings["global_float"]==true ? false : true});
document.getElementById('global_float').textContent = settings["global_float"]==true ? "已关闭" : "已打开";
document.getElementById('global_float').textContent = settings["global_float"]==true ? "مغلق" : "مفتوح";
});
// console.log(webhook_setting);
}
Expand All @@ -47,15 +47,15 @@ document.getElementById("fetch_timeout").onclick=function () {
chrome.storage.local.get(["fetch_timeout"], function(settings){
// console.log(settings);
chrome.storage.local.set({"fetch_timeout": settings["fetch_timeout"]==true ? false : true});
document.getElementById('fetch_timeout').textContent = settings["fetch_timeout"]==true ? "已关闭" : "已打开";
document.getElementById('fetch_timeout').textContent = settings["fetch_timeout"]==true ? "مغلق" : "مفتوح";
});
// console.log(webhook_setting);
}

chrome.storage.local.get(["webhook_setting"], function(settings){
console.log(settings);
if(!settings || settings == {} || !settings["webhook_setting"] ){
console.log('获取webhook_setting失败');
console.log('webhook_اعدادت');
return;
}
document.getElementById('url').value = settings["webhook_setting"]['url'];
Expand All @@ -64,10 +64,10 @@ chrome.storage.local.get(["webhook_setting"], function(settings){
document.getElementById('headers').value = JSON.stringify(settings["webhook_setting"]['headers']);
});
chrome.storage.local.get(["global_float"], function(settings){
document.getElementById('global_float').textContent = settings["global_float"]==true ? "已打开" : "已关闭";
document.getElementById('global_float').textContent = settings["global_float"]==true ? "مفتوح" : "مغلق";
});
chrome.storage.local.get(["fetch_timeout"], function(settings){
document.getElementById('fetch_timeout').textContent = settings["fetch_timeout"]==true ? "已打开" : "已关闭";
document.getElementById('fetch_timeout').textContent = settings["fetch_timeout"]==true ? "مفتوح" : "مغلق";
});
chrome.storage.local.get(["allowlist"], function(allowlist){
if(allowlist && allowlist["allowlist"]){
Expand Down

0 comments on commit 47df582

Please sign in to comment.