Skip to content
Permalink
Browse files

Revert .cc domain changes

  • Loading branch information
Glagan committed Jan 14, 2020
1 parent f93ac52 commit 62325d09b05a698a414c3575578f7650ef1c5234
Showing with 9 additions and 8 deletions.
  1. +4 −4 build.js
  2. +2 −2 scripts/defaultOptions.js
  3. +3 −2 scripts/optionsManager.js
@@ -12,14 +12,14 @@ const [,, ...args] = process.argv;
let manifest = {
manifest_version: 2,
name: "MyMangaDex",
version: "2.3.9",
version: "2.3.10",
author: "Glagan",

description: "Automatically update your MyAnimeList manga list when reading on MangaDex.",

permissions: [
"https://*.myanimelist.net/*",
"https://*.mangadex.cc/*",
//"https://*.mangadex.cc/*",
"https://*.mangadex.org/*",
"*://*.nikurasu.org/api/*",
"storage"
@@ -58,7 +58,7 @@ let manifest = {
"https://*.mangadex.org/user*",
"https://*.mangadex.org/list*",
"https://*.mangadex.org/history",
"https://*.mangadex.cc/follows",
/*"https://*.mangadex.cc/follows",
"https://*.mangadex.cc/follows/manga/0/0/*",
"https://*.mangadex.cc/follows/chapters/*",
"https://*.mangadex.cc/manga*",
@@ -73,7 +73,7 @@ let manifest = {
"https://*.mangadex.cc/genre*",
"https://*.mangadex.cc/user*",
"https://*.mangadex.cc/list*",
"https://*.mangadex.cc/history"
"https://*.mangadex.cc/history"*/
],
js: [
"scripts/MyMangaDex.js"
@@ -8,7 +8,7 @@ window.browser = (function () {
window.chrome;
})();
let domainName = window.location.hostname.split('.')[1] || 'org';
let domain = [window.location.origin, '/'].join('') || 'https://mangadex.org/';
let domain = 'https://mangadex.org/'; // [window.location.origin, '/'].join('')

// Object containing all options
// Is initialized with the default options
@@ -46,5 +46,5 @@ let defaultOptions = {
isLoggedIn: false,
token: "",
version: 2.3,
subVersion: 9
subVersion: 10
};
@@ -395,12 +395,13 @@ class OptionsManager {

async setDomain() {
if (!this.domain) {
let resp = await fetch("https://mangadex.cc/about");
this.domain = 'https://mangadex.org/';
/*let resp = await fetch("https://mangadex.cc/about");
if (resp.ok) {
this.domain = "https://mangadex.cc/";
} else {
this.domain = "https://mangadex.org/";
}
}*/
}
}

0 comments on commit 62325d0

Please sign in to comment.
You can’t perform that action at this time.