Skip to content

Commit 1b9065b

Browse files
committed
write in log api version information and display critical error to user
1 parent 48ae191 commit 1b9065b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/js/client_api.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,16 @@ PKEngine.ClientAPI = new function()
4343
return true;
4444
}
4545

46-
CRITICAL_ERROR( I18N(
46+
LOG( I18N(
4747
'Invalid API version: expected ${1}, got ${2}',
4848
JSON.stringify(supported_version_, null, 4),
4949
JSON.stringify(received_version, null, 4)
5050
));
5151

52+
CRITICAL_ERROR(
53+
I18N('The current client is out of date. Click "close" to reload the page.')
54+
);
55+
5256
return false;
5357
}
5458
}

0 commit comments

Comments
 (0)