You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good idea! Luckily, this kind of thing is super-easy to add to blank-canvas.
The trickiest part is adding the JavaScript functionality. You'd need to add something like this to static/index.html:
functionSetTitle(newTitle){// :: Text -> Canvas ()returnfunction(u,c){document.title=newTitle;$.kc.reply(u,[]);// Return unit tuple};}
Once that's done, all you need to do is add a new SetTitle constructor to the Query datatype, as well as corresponding cases to the InstrShow instance and parseQueryResult.
Currently, the browser tab displaying the blank canvas app says
Blank Canvas
. Which is a lie as soon as the canvas is filled :-).I propose a function
setTitle :: Text -> Canvas ()
that would, well, set the the title.The text was updated successfully, but these errors were encountered: