Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: ports/quakespasm/quakespasm.js

Issue 1415743013: Run jshint over all JavaScript files (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@repo_conf
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/python3/python.js ('k') | ports/ruby-ppapi/ruby.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/quakespasm/quakespasm.js
diff --git a/ports/quakespasm/quakespasm.js b/ports/quakespasm/quakespasm.js
index aa1c3c3e245930c2ed65e98c8fca7def19ba2f11..bb1a3cac084beb263d1dc79790e5e8bec0a0e714 100644
--- a/ports/quakespasm/quakespasm.js
+++ b/ports/quakespasm/quakespasm.js
@@ -4,6 +4,10 @@
* found in the LICENSE file.
*/
+/* globals zip */
+
+'use strict';
+
var PAK_FILE = 'id1/pak0.pak';
function updateStatus(message) {
@@ -66,7 +70,7 @@ function extractZipFile(file, filesystem, oncomplete) {
function() {
updateStatus('Error reading zip file');
}
- )
+ );
}
function uploadDidChange(event) {
@@ -91,11 +95,11 @@ function uploadDidChange(event) {
function loadFromLocalStorage() {
function loadFailure() {
updateStatus('Quake data not found in local html5 filesystem.');
- updateStatus('Please locate a quake level set (for example the '
- + '<a href="http://www.libsdl.org/projects/quake/data/quakesw-1.0.6.zip">'
- + 'shareware levels</a>) and either extract them alongside the nmf file,'
- + ' or use the upload button below to unzip them in the local html5'
- + ' filesystem.');
+ updateStatus('Please locate a quake level set (for example the ' +
+ '<a href="http://www.libsdl.org/projects/quake/data/quakesw-1.0.6.zip">' +
+ 'shareware levels</a>) and either extract them alongside the nmf file,' +
+ ' or use the upload button below to unzip them in the local html5' +
+ ' filesystem.');
// Create an html5 file input elemnt in so the user can upload the game
// data as a zip file.
document.getElementById('quake').innerHTML =
« no previous file with comments | « ports/python3/python.js ('k') | ports/ruby-ppapi/ruby.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698