Add warning message when using old thread design
In threads which are using nested replies, a warning will be shown if
the user has enabled the old thread design to notify them that they
won't work properly.
Fixed: twpowertools:139
Change-Id: I393ac187fef22a4c5f062bf99d84c373011d514b
diff --git a/src/options/optionsCommon.js b/src/options/optionsCommon.js
index f0b20bf..557f6aa 100644
--- a/src/options/optionsCommon.js
+++ b/src/options/optionsCommon.js
@@ -1,4 +1,4 @@
-import {getExtVersion, isProdVersion} from '../common/extUtils.js';
+import {getDocURL, getDocURLWithRef, getExtVersion, isProdVersion} from '../common/extUtils.js';
import {ensureOptPermissions, grantedOptPermissions, isPermissionsObjectEmpty, missingPermissions} from '../common/optionsPermissions.js';
import {cleanUpOptions, optionsPrototype, specialOptions} from '../common/optionsUtils.js';
@@ -9,22 +9,6 @@
const exclusiveOptions = [['thread', 'threadall']];
const kClickShouldEnableFeat = 'data-click-should-enable-feature';
-// Get a URL to a document which is part of the extension documentation (using
-// |ref| as the Git ref).
-function getDocURLWithRef(doc, ref) {
- return 'https://gerrit.avm99963.com/plugins/gitiles/infinitegforums/+/' +
- ref + '/docs/' + doc;
-}
-
-// Get a URL to a document which is part of the extension documentation
-// (autodetect the appropriate Git ref)
-function getDocURL(doc) {
- if (!isProdVersion()) return getDocURLWithRef(doc, 'HEAD');
-
- var version = getExtVersion();
- return getDocURLWithRef(doc, 'refs/tags/v' + version);
-}
-
// Get the value of the option set in the options/experiments page
function getOptionValue(opt) {
if (specialOptions.includes(opt)) {