Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Don’t open a new tab when opening a project in Framer
- Loading branch information
Showing
with
4 additions
and
3 deletions.
-
+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" |
|
|
|
|
|