summaryrefslogtreecommitdiffstats
path: root/core/src/Polyfill/windows-phone.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-09-25 18:19:42 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-10-01 17:16:09 +0200
commitb9bc2417e7a8dc81feb0abe20359bedaf864f790 (patch)
tree61b47fbf37c1d168da8625224debde9e6a985348 /core/src/Polyfill/windows-phone.js
parent7fb651235128dcbca8a6683b5cdafdf835f46300 (diff)
downloadnextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.tar.gz
nextcloud-server-b9bc2417e7a8dc81feb0abe20359bedaf864f790.zip
Comply to eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/src/Polyfill/windows-phone.js')
-rw-r--r--core/src/Polyfill/windows-phone.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/Polyfill/windows-phone.js b/core/src/Polyfill/windows-phone.js
index 3d59074856b..983e412e453 100644
--- a/core/src/Polyfill/windows-phone.js
+++ b/core/src/Polyfill/windows-phone.js
@@ -20,10 +20,10 @@
*/
// fix device width on windows phone
-if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
- const msViewportStyle = document.createElement("style");
+if ('-ms-user-select' in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) {
+ const msViewportStyle = document.createElement('style')
msViewportStyle.appendChild(
- document.createTextNode("@-ms-viewport{width:auto!important}")
- );
- document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
+ document.createTextNode('@-ms-viewport{width:auto!important}')
+ )
+ document.getElementsByTagName('head')[0].appendChild(msViewportStyle)
}