key: "initWindow", // creates the window
value: function() {
var omnibox = document.createElement("span"); // this isn't the omnibox so idk why i called this variable that
omnibox innerHTML = '<style>\n frameOverlay {\n height: 100%;\n
Naming stuff is one of the hardest things. Working out why something is hard to name often reveals design oddities. But you can change the name later...
31
u/abejfehr Mar 29 '22
I don’t think you should inject the stylesheet via innerHTML, you can access the style properties on the newly created element
80
u/leo848blume Mar 29 '22
Alright, this isn't the omnibox
21
u/r0ck0 Mar 29 '22
Damn. If only code was editable.
12
u/[deleted] Mar 29 '22
Why refactoring when you can just add a comment?
3
u/[deleted] Mar 29 '22
var, seriously
9
u/notBjoern Mar 29 '22
This isn't the omnibox you're looking for.
7
u/whoisjuan Mar 29 '22
Wait until he discovers “find and replace”
11
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Mar 29 '22
Image Transcription: Code
[The rest of the code is cut off in the image.]
I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!
5
u/keethraxmn Mar 29 '22
Naming stuff is one of the hardest things. Working out why something is hard to name often reveals design oddities. But you can change the name later...
0
u/[deleted] Mar 29 '22
[deleted] — view deleted comment