Compare commits
	
		
			No commits in common. "8784e141ebb1bb0610a23aad111bf3769f77dd1b" and "0d056fa5de9e5c4afc237b24d308d58c91152760" have entirely different histories.
		
	
	
		
			8784e141eb
			...
			0d056fa5de
		
	
		
@ -1,5 +1,5 @@
 | 
				
			|||||||
[tool.bumpversion]
 | 
					[tool.bumpversion]
 | 
				
			||||||
current_version = "1.3.12"
 | 
					current_version = "1.3.11"
 | 
				
			||||||
commit = true
 | 
					commit = true
 | 
				
			||||||
tag = true
 | 
					tag = true
 | 
				
			||||||
tag_name = "{new_version}"
 | 
					tag_name = "{new_version}"
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										2
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								app.py
									
									
									
									
									
								
							@ -168,6 +168,8 @@ def share() -> Response:
 | 
				
			|||||||
@app.route("/accounts/add", methods=["GET", "POST"])
 | 
					@app.route("/accounts/add", methods=["GET", "POST"])
 | 
				
			||||||
def add_account() -> Union[Response, str]:
 | 
					def add_account() -> Union[Response, str]:
 | 
				
			||||||
    """Handles adding a new user account."""
 | 
					    """Handles adding a new user account."""
 | 
				
			||||||
 | 
					    if not session.get("logged_in"):
 | 
				
			||||||
 | 
					        return redirect(url_for("index"))
 | 
				
			||||||
    base_url = app.config["BASE_URL"]
 | 
					    base_url = app.config["BASE_URL"]
 | 
				
			||||||
    shared_text = request.args.get('shared_text')
 | 
					    shared_text = request.args.get('shared_text')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -19,10 +19,12 @@
 | 
				
			|||||||
  "display": "standalone",
 | 
					  "display": "standalone",
 | 
				
			||||||
  "theme_color": "#ffffff",
 | 
					  "theme_color": "#ffffff",
 | 
				
			||||||
  "share_target": {
 | 
					  "share_target": {
 | 
				
			||||||
    "action": "share",
 | 
					    "action": "/share",
 | 
				
			||||||
    "method": "GET",
 | 
					    "method": "GET",
 | 
				
			||||||
    "params": {
 | 
					    "params": {
 | 
				
			||||||
      "text": "text"
 | 
					      "title": "title",
 | 
				
			||||||
 | 
					      "text": "text",
 | 
				
			||||||
 | 
					      "url": "url"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@ -131,11 +131,15 @@
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                });
 | 
					                });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            const sharedText = '{{ shared_text|safe }}';
 | 
					            const sharedTextJson = '{{ shared_text|tojson|safe }}';
 | 
				
			||||||
 | 
					            console.log('sharedTextJson:', sharedTextJson);
 | 
				
			||||||
 | 
					            const sharedText = JSON.parse(sharedTextJson);
 | 
				
			||||||
 | 
					            console.log('sharedText:', sharedText);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (sharedText) {
 | 
					            if (sharedText) {
 | 
				
			||||||
                const accountDetailsTextarea = document.getElementById('accountDetails');
 | 
					                const accountDetailsTextarea = document.getElementById('accountDetails');
 | 
				
			||||||
                if (accountDetailsTextarea) {
 | 
					                if (accountDetailsTextarea) {
 | 
				
			||||||
 | 
					                    console.log('Setting accountDetailsTextarea value to:', sharedText);
 | 
				
			||||||
                    accountDetailsTextarea.value = sharedText;
 | 
					                    accountDetailsTextarea.value = sharedText;
 | 
				
			||||||
                    const event = new Event('input', {
 | 
					                    const event = new Event('input', {
 | 
				
			||||||
                        bubbles: true,
 | 
					                        bubbles: true,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user