Skip to content

Commit

Permalink
Fix lint issues in react-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
nhunzaker authored and Brandon Dail committed Jan 2, 2017
1 parent 97962bf commit f16e67e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fixtures/react-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ var query = parseQuery(window.location.search.slice(1));
var version = query.version || 'local';

if (version !== 'local') {
REACT_PATH = "https://unpkg.com/react@" + version + "/dist/react.min.js";
DOM_PATH = "https://unpkg.com/react-dom@" + version + "/dist/react-dom.min.js";
REACT_PATH = 'https://unpkg.com/react@' + version + '/dist/react.min.js';
DOM_PATH = 'https://unpkg.com/react-dom@' + version + '/dist/react-dom.min.js';
}

console.log('Loading ' + version);

document.write("\<script src='" + BABEL_PATH + "'\>\</script\>");
document.write("\<script src='" + REACT_PATH + "'\>\</script\>");
document.write('<script src="' + BABEL_PATH + '"></script>');
document.write('<script src="' + REACT_PATH + '"></script>');

// Versions earlier than 14 do not use ReactDOM
if (version === 'local' || parseFloat(version, 10) > 0.13) {
document.write("\<script src='" + DOM_PATH + "'\>\</script\>");
document.write('<script src="' + DOM_PATH + '"></script>');
} else {
console.log('Aliasing React to ReactDOM for compatability.');
document.write('\<script\>ReactDOM = React\</script\>');
document.write('<script>ReactDOM = React</script>');
}

0 comments on commit f16e67e

Please sign in to comment.