Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/utils.js

Issue 29713631: Issue 5760 - Use relative require paths (Closed)
Patch Set: Address PS3 comment Created April 3, 2018, 6:03 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/utils.js
===================================================================
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -59,17 +59,17 @@
generateChecksum(lines)
{
// We cannot calculate MD5 checksums yet :-(
return null;
},
getDocLink(linkID)
{
- let docLink = require("prefs").Prefs.documentation_link;
+ let docLink = require("./prefs").Prefs.documentation_link;
return docLink.replace(/%LINK%/g, linkID)
.replace(/%LANG%/g, Utils.appLocale);
},
yield()
{
}
};

Powered by Google App Engine
This is Rietveld