(even) better gif loader, scss support
This commit is contained in:
parent
ca926c4dfb
commit
5888e2cdfb
16 changed files with 267 additions and 45 deletions
|
|
@ -14,8 +14,8 @@ class Misc {
|
|||
static public function api(): \Sovit\TikTok\Api {
|
||||
$options = [];
|
||||
// Proxy config
|
||||
if (in_array(Settings::$proxy, $_COOKIE)) {
|
||||
foreach (Settings::$proxy as $proxy_element) {
|
||||
if (in_array(Settings::PROXY, $_COOKIE)) {
|
||||
foreach (Settings::PROXY as $proxy_element) {
|
||||
$options[$proxy_element] = $_COOKIE[$proxy_element];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
namespace Helpers;
|
||||
|
||||
class Settings {
|
||||
static public $proxy = ['proxy-host', 'proxy-port', 'proxy-username', 'proxy-password'];
|
||||
const PROXY = ['proxy-host', 'proxy-port', 'proxy-username', 'proxy-password'];
|
||||
|
||||
static public function get(string $name): string {
|
||||
if (isset($_COOKIE[$name]) && !empty($_COOKIE[$name])) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue