mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 03:50:02 -04:00
Heroku/Repl.it fix?
This commit is contained in:
parent
73cdcb3186
commit
2cbcaebca8
44 changed files with 1097 additions and 35748 deletions
|
@ -4,10 +4,9 @@
|
|||
// -------------------------------------------------------------
|
||||
const URLWrapper = require('./url');
|
||||
const CookieRewriter = require('./cookie');
|
||||
const CSSRewriter = require('./css/');
|
||||
const HTMLRewriter = require('./html/');
|
||||
const JSRewriter = require('./js/');
|
||||
const codec = require('./codec');
|
||||
const CSSRewriter = require('./css');
|
||||
const HTMLRewriter = require('./html');
|
||||
const JSRewriter = require('./js');
|
||||
const defaultConfig = {
|
||||
prefix: '/service/',
|
||||
codec: 'plain',
|
||||
|
@ -20,8 +19,9 @@ class Rewrite {
|
|||
constructor(config = defaultConfig) {
|
||||
this.config = Object.assign(defaultConfig, config);
|
||||
this.prefix = this.config.prefix;
|
||||
this.url = new URLWrapper(this.config || {}, this);
|
||||
this.codec = codec;
|
||||
this.forceHttps = this.config.forceHttps;
|
||||
this.url = new URLWrapper(this.config || {});
|
||||
this.codec = this.url.codec;
|
||||
this.cookies = new CookieRewriter(this);
|
||||
this.css = new CSSRewriter(this);
|
||||
this.js = new JSRewriter(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue