Permalink
Browse files

Don’t open a new tab when opening a project in Framer

  • Loading branch information...
eelco committed Jul 29, 2016
1 parent a44cf99 commit 0398085f2a49b1753277e77e2cef3b5af35ef097
Showing with 4 additions and 3 deletions.
  1. +4 −3 framer/Components/ShareComponent.coffee
@@ -314,7 +314,7 @@ class ShareComponent
urlified = text.replace urlRegex, (url) ->
if !httpRegex.test(url)
href = "//#{url}"
href = "http://#{url}"
else
href = url
@@ -388,22 +388,23 @@ class ShareComponent
parent: @info
y: @date.maxY + 20
@buttonDownload = new Button
@buttonOpen = new Button
url: @shareInfo.openInFramerURL
html: "Open in Framer"
color: "#FFF"
parent: @buttons
width: 139
borderRadius: 3
backgroundColor: "00AAFF"
@buttonOpen.onClick -> window.open(options.url)
@buttonFacebook = new Button
url: "https://www.facebook.com/sharer/sharer.php?u=#{window.location.href}"
parent: @buttons
borderWidth: 1
borderColor: "#D5D5D5"
width: 33
x: @buttonDownload.maxX + 6
x: @buttonOpen.maxX + 6
style:
borderRadius: "3px 0 0 3px"

0 comments on commit 0398085

Please sign in to comment.