Skip to content

Commit

Permalink
Revert "Don’t open a new tab when opening a project in Framer"
Browse files Browse the repository at this point in the history
This reverts commit 0398085.
  • Loading branch information
eelco committed Jul 29, 2016
1 parent 0398085 commit ef12b68
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions framer/Components/ShareComponent.coffee
Expand Up @@ -314,7 +314,7 @@ class ShareComponent
urlified = text.replace urlRegex, (url) ->

if !httpRegex.test(url)
href = "http://#{url}"
href = "//#{url}"
else
href = url

Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit ef12b68

Please sign in to comment.