mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-30 02:52:30 +00:00
This fixes complaints about windows ending up offscreen or resize throwing a fit, hopefully
13 lines
322 B
Plaintext
13 lines
322 B
Plaintext
<script type='text/coffeescript'>
|
|
byond = require "../byond"
|
|
|
|
component.exports =
|
|
oninit: ->
|
|
@observe "config.fancy", (newkey, oldkey, keypath) ->
|
|
byond.winset @get("config.window"), "can-resize", !!!newkey
|
|
</script>
|
|
|
|
{{#if config.fancy}}
|
|
<div class='resize' on-mousedown='resize'></div>
|
|
{{/if}}
|