/**1* @license2* Copyright 2013 The Emscripten Authors3* SPDX-License-Identifier: MIT4*5* This file gets implicatly injected as a `--pre-js` file when6* emcc is run with `--emrun`7*/89// Route URL GET parameters to argc+argv10if (typeof window == 'object') {11Module['arguments'] = window.location.search.slice(1).trim().split('&');12for (let i = 0; i < Module['arguments'].length; ++i) {13Module['arguments'][i] = decodeURI(Module['arguments'][i]);14}15// If no args were passed arguments = [''], in which case kill the single empty string.16if (!Module['arguments'][0]) {17Module['arguments'] = [];18}19}202122