resourceloader: Simplify isCompatible() parameter in startup.js
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 9 Apr 2019 03:14:48 +0000 (04:14 +0100)
committerJforrester <jforrester@wikimedia.org>
Tue, 9 Apr 2019 19:22:21 +0000 (19:22 +0000)
commit5157ccb16af58c4a58ce01a22ba6d2e33935c52b
treeba743c3aebef08ec582ab9368d87078b89435381
parentd059dffa289b0933037c57919d49bb4f64bd0457
resourceloader: Simplify isCompatible() parameter in startup.js

This is a private function (now marked as such) only ever called
once in prod code (a few lines further down). It is exposed
to testing as well, which is why it has a parameter.

Call it with a parameter within startup.js as well, so that we can
remove the default handling and use the function the same way in
prod as the way we use it in tests.

Change-Id: Ie9db60e417cca29f86cea20359e880cb1fa20197
resources/src/startup/startup.js