Fix a bug in NoSleep 0.9.0 and Firefox for Android, https://github.com/richtr/NoSleep.js/issues/63

This commit is contained in:
Lucas Verney 2019-01-13 17:00:59 +01:00
parent cadd8869aa
commit d5b9d9f0fc
4 changed files with 84 additions and 9 deletions

View File

@ -20,7 +20,6 @@
"file-saver": "^2.0.0", "file-saver": "^2.0.0",
"gps-to-gpx": "git://github.com/phyks/gps-to-gpx.git#1cb5adf4dd382266d076d7df3cb5aa3a4d7dd27b", "gps-to-gpx": "git://github.com/phyks/gps-to-gpx.git#1cb5adf4dd382266d076d7df3cb5aa3a4d7dd27b",
"localforage": "^1.7.3", "localforage": "^1.7.3",
"nosleep.js": "^0.9.0",
"ol": "^5.3.0", "ol": "^5.3.0",
"roboto-fontface": "^0.10.0", "roboto-fontface": "^0.10.0",
"serviceworker-webpack-plugin": "^1.0.1", "serviceworker-webpack-plugin": "^1.0.1",

83
src/tools/nosleep.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -52,9 +52,7 @@
</template> </template>
<script> <script>
// Import directly from dist to avoid ES6 issues import NoSleep from '@/tools/nosleep';
// See https://github.com/richtr/NoSleep.js/issues/46.
import NoSleep from 'nosleep.js';
import Alert from '@/components/Alert.vue'; import Alert from '@/components/Alert.vue';
import Map from '@/components/Map.vue'; import Map from '@/components/Map.vue';

View File

@ -5722,11 +5722,6 @@ normalize-url@^3.0.0:
version "3.2.0" version "3.2.0"
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.2.0.tgz#98d0948afc82829f374320f405fe9ca55a5f8567" resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-3.2.0.tgz#98d0948afc82829f374320f405fe9ca55a5f8567"
nosleep.js@^0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/nosleep.js/-/nosleep.js-0.9.0.tgz#0f1371b81dc182e3b6bbdb837e880f16db9d7163"
integrity sha512-qLOl2MmuGOPZY7Exi0kYJSCr2e9IcAtOykOo7hXUGAoaMC1Iqj0m+Aj2REuay68mDkhbc5CoA4ccUvcZI175Kw==
npm-bundled@^1.0.1: npm-bundled@^1.0.1:
version "1.0.3" version "1.0.3"
resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.3.tgz#7e71703d973af3370a9591bafe3a63aca0be2308" resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-1.0.3.tgz#7e71703d973af3370a9591bafe3a63aca0be2308"