Render nothing for /?text=
Test Plan: Went to /?text=, saw nothing (instead of the default). Auditors: emily
This commit is contained in:
parent
edb42c50f8
commit
5a94faac9e
|
@ -19,7 +19,7 @@ function init() {
|
|||
});
|
||||
}
|
||||
|
||||
var match = (/(?:^\?|&)text=([^&]+)/).exec(window.location.search);
|
||||
var match = (/(?:^\?|&)text=([^&]*)/).exec(window.location.search);
|
||||
if (match) {
|
||||
input.value = decodeURIComponent(match[1]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user