Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
dev:translators:coding [2020/03/12 01:59] – [Writing Translator Code] dstillmandev:translators:coding [2020/04/22 18:15] – [detectWeb] dstillman
Line 15: Line 15:
  
 <code javascript>function detectWeb(doc, url) { <code javascript>function detectWeb(doc, url) {
-  
  if (url.indexOf("search/results") != -1) {  if (url.indexOf("search/results") != -1) {
  return "multiple";  return "multiple";
- } else if (url.indexOf("content/article") != -1) {+ } 
 + else if (url.indexOf("content/article") != -1) {
  return "journalArticle";  return "journalArticle";
  }  }
 + return false;
 }</code> }</code>
  
dev/translators/coding.txt · Last modified: 2023/08/04 01:14 by dstillman