Compare commits
No commits in common. "2da6c6584ac889db485fcb1b82dae8009024b0dd" and "d3fe4ad3804d22d4e780a75621b56a187dd74b7f" have entirely different histories.
2da6c6584a
...
d3fe4ad380
@ -1,5 +1,5 @@
|
||||
[tool.bumpversion]
|
||||
current_version = "1.3.10"
|
||||
current_version = "1.3.9"
|
||||
commit = true
|
||||
tag = true
|
||||
tag_name = "{new_version}"
|
||||
|
4
app.py
4
app.py
@ -162,16 +162,12 @@ def user_accounts() -> Union[Response, str]:
|
||||
@app.route("/share", methods=["GET"])
|
||||
def share() -> Response:
|
||||
"""Handles shared text from PWA."""
|
||||
if not session.get("logged_in"):
|
||||
return redirect(url_for("index"))
|
||||
shared_text = request.args.get("text")
|
||||
return redirect(url_for("add_account", shared_text=shared_text))
|
||||
|
||||
@app.route("/accounts/add", methods=["GET", "POST"])
|
||||
def add_account() -> Union[Response, str]:
|
||||
"""Handles adding a new user account."""
|
||||
if not session.get("logged_in"):
|
||||
return redirect(url_for("index"))
|
||||
base_url = app.config["BASE_URL"]
|
||||
shared_text = request.args.get('shared_text')
|
||||
|
||||
|
@ -131,15 +131,11 @@
|
||||
}
|
||||
});
|
||||
|
||||
const sharedTextJson = '{{ shared_text|tojson|safe }}';
|
||||
console.log('sharedTextJson:', sharedTextJson);
|
||||
const sharedText = JSON.parse(sharedTextJson);
|
||||
console.log('sharedText:', sharedText);
|
||||
const sharedText = '{{ shared_text|safe }}';
|
||||
|
||||
if (sharedText) {
|
||||
const accountDetailsTextarea = document.getElementById('accountDetails');
|
||||
if (accountDetailsTextarea) {
|
||||
console.log('Setting accountDetailsTextarea value to:', sharedText);
|
||||
accountDetailsTextarea.value = sharedText;
|
||||
const event = new Event('input', {
|
||||
bubbles: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user