Commit cda68cff authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue77' into 'master'

Minor fix using jshint. Compile the code It fixes #77

Closes #77

See merge request !97
parents ccca407b cf87fca1
Pipeline #14580 passed with stages
in 1 minute and 29 seconds
......@@ -29,6 +29,7 @@
<script src="src/ESRF-DC-142915526.js"></script>
<script src="src/event.js"></script>
<script src="src/experimentalreportcontroller.js"></script>
<script src="src/googleMetadataObject.js"></script>
<script src="src/jsonextractor.js"></script>
<script src="src/metadataTableHelper.js"></script>
......
This diff is collapsed.
......@@ -11,16 +11,16 @@ function GoogleMetadataObject(data) {
*/
GoogleMetadataObject.prototype.getMetadata = function () {
return this.data;
}
};
/**
* Set a license
*/
GoogleMetadataObject.prototype.setLicense = function () {
if (!this.data.license) {
this.data.license = "https://creativecommons.org/licenses/by/4.0"
this.data.license = "https://creativecommons.org/licenses/by/4.0";
}
}
};
/**
* Set a description.
......@@ -33,4 +33,4 @@ GoogleMetadataObject.prototype.setDescription = function () {
} else {
console.log("[GoogleMetadataObject] - The data required by Google is missing the 'name' field. This is required by Google for indexing.");
}
}
\ No newline at end of file
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment