remove safari check
This commit is contained in:
parent
872433c4bb
commit
645a05bc9b
|
@ -51,7 +51,6 @@ function Form(): JSX.Element {
|
||||||
|
|
||||||
const getPassCount = async () => {
|
const getPassCount = async () => {
|
||||||
const hitCount = await getHitCount();
|
const hitCount = await getHitCount();
|
||||||
console.log(`hitcount = ${hitCount}`);
|
|
||||||
setPassCount(hitCount);
|
setPassCount(hitCount);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -63,8 +62,6 @@ function Form(): JSX.Element {
|
||||||
let response = await fetch(request);
|
let response = await fetch(request);
|
||||||
const counter = await response.text();
|
const counter = await response.text();
|
||||||
|
|
||||||
console.log('getHitCount returns ' + counter);
|
|
||||||
|
|
||||||
return Promise.resolve(counter);
|
return Promise.resolve(counter);
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
@ -286,10 +283,10 @@ function Form(): JSX.Element {
|
||||||
setErrorMessage('Sorry, iOS 13+ is needed for the Apple Wallet functionality to work')
|
setErrorMessage('Sorry, iOS 13+ is needed for the Apple Wallet functionality to work')
|
||||||
document.getElementById('download').setAttribute('disabled','true')
|
document.getElementById('download').setAttribute('disabled','true')
|
||||||
}
|
}
|
||||||
if (isIOS && !isSafari) {
|
// if (isIOS && !isSafari) {
|
||||||
setErrorMessage('Sorry, only Safari can be used to add a Wallet Pass on iOS')
|
// setErrorMessage('Sorry, only Safari can be used to add a Wallet Pass on iOS')
|
||||||
document.getElementById('download').setAttribute('disabled','true')
|
// document.getElementById('download').setAttribute('disabled','true')
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -323,7 +320,7 @@ function Form(): JSX.Element {
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={showFileDialog}
|
onClick={showFileDialog}
|
||||||
className="focus:outline-none h-20 bg-gray-500 hover:bg-gray-700 text-white font-semibold rounded-md">
|
className="focus:outline-none h-20 bg-green-600 hover:bg-gray-700 text-white font-semibold rounded-md">
|
||||||
{t('index:openFile')}
|
{t('index:openFile')}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
{
|
{
|
||||||
"name": "grassroots_covidpass",
|
"name": "grassroots_covidpass",
|
||||||
"version": "1.4.0",
|
"version": "1.8.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "grassroots_covidpass",
|
"name": "grassroots_covidpass",
|
||||||
"version": "1.4.0",
|
"version": "1.8.0",
|
||||||
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@headlessui/react": "^1.3.0",
|
"@headlessui/react": "^1.3.0",
|
||||||
"@ninja-labs/verify-pdf": "^0.3.9",
|
"@ninja-labs/verify-pdf": "^0.3.9",
|
||||||
|
|
Loading…
Reference in New Issue