Skip to content

Commit 7e723ad

Browse files
committed
Adds missing semi-colons [minor]
1 parent 43d02a3 commit 7e723ad

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

htmlpreview.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
return location.search.substring(1)
1616
.replace(/\/\/github\.com/, '//raw.githubusercontent.com')
1717
.replace(/\/blob\//, '/').replace(/\/raw\//, '/');
18-
}
18+
};
1919

2020
/**
2121
* Returns whether the given URL points to a file on a known git forge.
@@ -26,7 +26,7 @@
2626
const isGitForgeFileUrl = function (url) {
2727
return (url.indexOf('//raw.githubusercontent.com') > 0
2828
|| url.indexOf('//bitbucket.org') > 0);
29-
}
29+
};
3030

3131
/**
3232
* Returns whether the given URL points to an HTML file,
@@ -35,7 +35,7 @@
3535
*/
3636
const isHtmlUrl = function (url) {
3737
return (url.indexOf('.html') > 0 || url.indexOf('.htm') > 0);
38-
}
38+
};
3939

4040
/**
4141
* Returns the base URL of our service,
@@ -49,15 +49,15 @@
4949
}
5050
// Fallback value
5151
return 'https://git-forge-html-preview.github.io/git-forge-html-preview/?';
52-
}
52+
};
5353

5454
/**
5555
* Rewrite URL so it can be loaded using CORS proxy.
5656
* @param {string} url - Any URL
5757
*/
5858
const rewrite = function (url) {
5959
return location.origin + location.pathname + '?' + url;
60-
}
60+
};
6161

6262
/**
6363
* Rewrite URL so it can be loaded using CORS proxy,
@@ -67,11 +67,11 @@
6767
*/
6868
const rewriteCond = function (obj, prop) {
6969
// Get absolute URL
70-
const url = obj[prop]
70+
const url = obj[prop];
7171
if (isGitForgeFileUrl(url)) {
7272
obj[prop] = rewrite(url);
7373
}
74-
}
74+
};
7575

7676
const serviceBase = getServiceBase();
7777
document.getElementById("service_base").innerHTML = serviceBase + '?';
@@ -218,7 +218,7 @@
218218
throw error;
219219
}
220220
return fetchProxy(url, options, i + 1);
221-
})
221+
});
222222
};
223223

224224
if (rawFileUrl && rawFileUrl.indexOf(location.hostname) < 0) {
@@ -230,4 +230,4 @@
230230
} else {
231231
previewForm.style.display = 'block';
232232
}
233-
})()
233+
})();

0 commit comments

Comments
 (0)