Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: third_party/WebKit/Source/devtools/front_end/emulation/DeviceOrientation.js

Issue 1923393006: DevTools: fix styles and input validation in sensor pane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Orientation labels now alpha-beta-gamma Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/emulation/DeviceOrientation.js
diff --git a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceOrientation.js b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceOrientation.js
index 71292665eacb7e0f8703f3a91ccfca2f77801c71..94a6b65fe2e4f5f3c55d3198126fec93bbd51ac7 100644
--- a/third_party/WebKit/Source/devtools/front_end/emulation/DeviceOrientation.js
+++ b/third_party/WebKit/Source/devtools/front_end/emulation/DeviceOrientation.js
@@ -77,5 +77,5 @@ WebInspector.DeviceOrientation.parseUserInput = function(alphaString, betaString
*/
WebInspector.DeviceOrientation.validator = function(value)
{
- return !value || /^([+-]?[\d]+(\.\d+)?|[+-]?\.\d+)$/.test(value);
+ return /^([+-]?[\d]+(\.\d+)?|[+-]?\.\d+)$/.test(value);
}

Powered by Google App Engine
This is Rietveld 408576698