aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/contentscript.js
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-04-20 03:12:04 +0800
committerbitpshr <mail@bitpshr.net>2018-04-20 03:14:00 +0800
commit8636f3bae547ace7d099a3ed516bf013dfe3858e (patch)
tree179fd228bbf833709d70ed68b54cbb33c089ebda /app/scripts/contentscript.js
parent9c7eafc86f1d9d06dd6a5b66ecd2154b09299d03 (diff)
downloadtangerine-wallet-browser-8636f3bae547ace7d099a3ed516bf013dfe3858e.tar
tangerine-wallet-browser-8636f3bae547ace7d099a3ed516bf013dfe3858e.tar.gz
tangerine-wallet-browser-8636f3bae547ace7d099a3ed516bf013dfe3858e.tar.bz2
tangerine-wallet-browser-8636f3bae547ace7d099a3ed516bf013dfe3858e.tar.lz
tangerine-wallet-browser-8636f3bae547ace7d099a3ed516bf013dfe3858e.tar.xz
tangerine-wallet-browser-8636f3bae547ace7d099a3ed516bf013dfe3858e.tar.zst
tangerine-wallet-browser-8636f3bae547ace7d099a3ed516bf013dfe3858e.zip
Clean up JSDoc for background scripts
Diffstat (limited to 'app/scripts/contentscript.js')
-rw-r--r--app/scripts/contentscript.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/scripts/contentscript.js b/app/scripts/contentscript.js
index 728aab8cb..dbf1c6d4c 100644
--- a/app/scripts/contentscript.js
+++ b/app/scripts/contentscript.js
@@ -112,7 +112,7 @@ function logStreamDisconnectWarning (remoteLabel, err) {
/**
* Determines if Web3 should be injected
*
- * @returns {boolean} True of Web3 should be injected
+ * @returns {boolean} {@code true} if Web3 should be injected
*/
function shouldInjectWeb3 () {
return doctypeCheck() && suffixCheck()
@@ -122,7 +122,7 @@ function shouldInjectWeb3 () {
/**
* Checks the doctype of the current document if it exists
*
- * @returns {boolean} True if the doctype is html or if none exists
+ * @returns {boolean} {@code true} if the doctype is html or if none exists
*/
function doctypeCheck () {
const doctype = window.document.doctype
@@ -136,7 +136,7 @@ function doctypeCheck () {
/**
* Checks the current document extension
*
- * @returns {boolean} True if the current extension is not prohibited
+ * @returns {boolean} {@code true} if the current extension is not prohibited
*/
function suffixCheck () {
var prohibitedTypes = ['xml', 'pdf']
@@ -154,7 +154,7 @@ function suffixCheck () {
/**
* Checks the documentElement of the current document
*
- * @returns {boolean} True if the documentElement is an html node or if none exists
+ * @returns {boolean} {@code true} if the documentElement is an html node or if none exists
*/
function documentElementCheck () {
var documentElement = document.documentElement.nodeName
@@ -167,7 +167,7 @@ function documentElementCheck () {
/**
* Checks if the current domain is blacklisted
*
- * @returns {boolean} True if the current domain is blacklisted
+ * @returns {boolean} {@code true} if the current domain is blacklisted
*/
function blacklistedDomainCheck () {
var blacklistedDomains = [