mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
Avoid popup blockers by using redirection
This commit is contained in:
parent
c070f17c1c
commit
dc0deb0326
@ -121,7 +121,8 @@ class LicenseSuggestion
|
||||
license = repositoryInfo.license
|
||||
@setStatus "Error", @repositoryLicense repositoryFullName, license
|
||||
else # The repository is unlicensed
|
||||
window.open "https://github.com/#{repositoryFullName}/community/license/new?template=#{@licenseId}"
|
||||
window.location.href =
|
||||
"https://github.com/#{repositoryFullName}/community/license/new?template=#{@licenseId}"
|
||||
@setStatus ""
|
||||
@inputEl.val("")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user