Skip to content

Commit a5652cd

Browse files
committed
Replaces the remaining instances of var
1 parent 426b6f9 commit a5652cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

htmlpreview.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,22 +178,22 @@
178178

179179
const loadCSS = function (data) {
180180
if (data) {
181-
var style = document.createElement('style');
181+
const style = document.createElement('style');
182182
style.innerHTML = data;
183183
document.head.appendChild(style);
184184
}
185185
};
186186

187187
const loadJS = function (data) {
188188
if (data) {
189-
var script = document.createElement('script');
189+
const script = document.createElement('script');
190190
script.innerHTML = data;
191191
document.body.appendChild(script);
192192
}
193193
};
194194

195195
const fetchProxy = function (url, options, i) {
196-
var proxy = [
196+
const proxy = [
197197
'', // try without proxy first
198198
'https://api.codetabs.com/v1/proxy/?quest='
199199
];

0 commit comments

Comments
 (0)