You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +02:00
Chore: Apply eslint rules
This commit is contained in:
@ -11,7 +11,7 @@ urlUtils.hash = function(url) {
|
||||
|
||||
urlUtils.urlWithoutPath = function(url) {
|
||||
const parsed = require('url').parse(url, true);
|
||||
return parsed.protocol + '//' + parsed.host;
|
||||
return `${parsed.protocol}//${parsed.host}`;
|
||||
};
|
||||
|
||||
urlUtils.urlProtocol = function(url) {
|
||||
@ -36,7 +36,7 @@ urlUtils.prependBaseUrl = function(url, baseUrl) {
|
||||
// If it starts with a slash, it's an absolute URL so it should be relative to the domain (and not to the full baseUrl)
|
||||
return urlUtils.urlWithoutPath(baseUrl) + url;
|
||||
} else {
|
||||
return baseUrl + (url ? '/' + url : '');
|
||||
return baseUrl + (url ? `/${url}` : '');
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user