Permalink
Browse files

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

This reverts commit 0398085.
  • Loading branch information...
eelco committed Jul 29, 2016
1 parent 0398085 commit ef12b68bc1520a91aceaa63e87c1cb061b3954fd
Showing with 3 additions and 4 deletions.
  1. +3 −4 framer/Components/ShareComponent.coffee
@@ -314,7 +314,7 @@ class ShareComponent
urlified = text.replace urlRegex, (url) ->
if !httpRegex.test(url)
href = "http://#{url}"
href = "//#{url}"
else
href = url
@@ -388,23 +388,22 @@ class ShareComponent
parent: @info
y: @date.maxY + 20
@buttonOpen = new Button
@buttonDownload = 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: @buttonOpen.maxX + 6
x: @buttonDownload.maxX + 6
style:
borderRadius: "3px 0 0 3px"

0 comments on commit ef12b68

Please sign in to comment.