From 90275ae47aa835458fed675c3b2b53502d707786 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 14 Jun 2017 00:20:35 +0300 Subject: [PATCH] Help buggy USO support Linux Chromium --- install.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.js b/install.js index faba121c..b4738c2b 100644 --- a/install.js +++ b/install.js @@ -1,5 +1,6 @@ 'use strict'; +const CHROMIUM = /Chromium/.test(navigator.userAgent); // non-Windows Chromium const FIREFOX = /Firefox/.test(navigator.userAgent); const VIVALDI = /Vivaldi/.test(navigator.userAgent); const OPERA = /OPR/.test(navigator.userAgent); @@ -127,8 +128,8 @@ new MutationObserver((mutations, observer) => { */ function getStyleURL () { const url = getMeta('stylish-code-chrome'); - - if (FIREFOX || OPERA || VIVALDI) { + // TODO: remove when USO is fixed + if (FIREFOX || OPERA || VIVALDI || CHROMIUM) { /* get custom settings from the update url */ return Object.assign(new URL(url), { search: (new URL(getMeta('stylish-update-url'))).search