Skip to content

Commit 042c43c

Browse files
Hugh Isaacs IIHugh Isaacs II
authored andcommitted
Name tweaks
Changed server_app_id variable to chromeos_server_app_id and renamed more stuff to DatPart
1 parent b0265a1 commit 042c43c

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

chrome extension/background.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var server_app_id = chrome.runtime.getManifest().externally_connectable.ids[0];
1+
var chromeos_server_app_id = chrome.runtime.getManifest().externally_connectable.ids[0];
22

33
chrome.omnibox.onInputChanged.addListener(function(text, suggest) {
44
console.log('inputChanged: ' + text);
@@ -21,7 +21,7 @@ chrome.webNavigation.onBeforeNavigate.addListener(function(details) {
2121
if (currentTLD != 'dat_site') {
2222
//Do nothing
2323
} else {
24-
chrome.runtime.sendMessage(server_app_id, { launch: true });
24+
chrome.runtime.sendMessage(chromeos_server_app_id, { launch: true });
2525
console.log('inputEntered: ' + details.url + "|" + currentTLD);
2626
}
2727
});
@@ -35,8 +35,8 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) {
3535

3636
if (currentTLD != 'dat_site') {
3737
return;
38-
} else {
39-
//chrome.runtime.sendMessage(server_app_id, { launch: true });
38+
} else {
39+
//chrome.runtime.sendMessage(chromeos_server_app_id, { launch: true });
4040
};
4141

4242
var bithost = currentURLRequest.hostname;
@@ -62,8 +62,8 @@ chrome.webRequest.onBeforeRequest.addListener(function(details) {
6262
//return {cancel: true, redirectUrl: "redirect.html"};
6363
}, {urls: ["*://*.dat_site/*"]}, ["blocking"]);
6464

65-
chrome.webRequest.onErrorOccurred.addListener(function(details)
66-
{
65+
chrome.webRequest.onErrorOccurred.addListener(function(details)
66+
{
6767
var currentURLRequest = document.createElement('a');
6868
currentURLRequest.href = details.url;
6969
var currentTLD = currentURLRequest.hostname.split(".").pop();
@@ -77,8 +77,8 @@ chrome.webRequest.onErrorOccurred.addListener(function(details)
7777
},
7878
{urls: ["*://*.dat_site/*"], types: ["main_frame"]});
7979

80-
chrome.webRequest.onErrorOccurred.addListener(function(details)
81-
{
80+
chrome.webRequest.onErrorOccurred.addListener(function(details)
81+
{
8282
var currentURLRequest = document.createElement('a');
8383
currentURLRequest.href = details.url;
8484
var currentTLD = currentURLRequest.hostname.split(".").pop();
@@ -92,8 +92,8 @@ chrome.webRequest.onErrorOccurred.addListener(function(details)
9292
},
9393
{urls: ["*://*.torrent_site/*"], types: ["main_frame"]});
9494

95-
chrome.webRequest.onErrorOccurred.addListener(function(details)
96-
{
95+
chrome.webRequest.onErrorOccurred.addListener(function(details)
96+
{
9797
console.log(details);
9898
},
9999
{urls: ["dat://*"], types: ["main_frame"]});

chrome extension/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"permissions": ["tabs", "webRequestBlocking", "webRequest", "webNavigation", "proxy", "*://*.dat_site/*", "*://*.torrent_site/*", "storage", "unlimitedStorage"],
99
"optional_permissions": [ "tabs", "notifications", "background", "*://*/", "<all_urls>" ],
1010
"externally_connectable": { "ids": [ "pgdnnmekclkafnpfofleebhhnmolopgl" ] },
11-
"omnibox": { "keyword" : "other_web" },
11+
"omnibox": { "keyword" : "DatPart" },
1212
"web_accessible_resources": [
1313
"redirector.html",
1414
"redirector_script.js"
@@ -38,7 +38,7 @@
3838
"32": "logo.png",
3939
"128": "logo_128.png"
4040
},
41-
"default_title": "Stellar",
41+
"default_title": "DatPart",
4242
"default_popup": "popup.html"
4343
}
4444
}

0 commit comments

Comments
 (0)