Commit ed971ab3 authored by Romain Casati's avatar Romain Casati
Browse files

Force ES5 syntax.

parent 7a6aa420
......@@ -110,7 +110,7 @@
/**
* Promise that resolve when the kernel is loaded.
*/
loaded () { return this._loaded ?? this.init(); };
loaded () { return this._loaded || this.init(); };
/**
* The current script URL.
......@@ -165,7 +165,7 @@
* Returns a promise that resolves when page is loaded.
*/
pageLoad () {
return this._pageLoad ?? (this._pageLoad = new Promise(
return this._pageLoad || (this._pageLoad = new Promise(
function (resolve, reject) {
if( document.readyState === 'complete' ) {
resolve();
......
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