mirror of
				https://github.com/digitalocean/nginxconfig.io.git
				synced 2025-11-04 18:28:17 +08:00 
			
		
		
		
	getUrl()
This commit is contained in:
		@@ -201,6 +201,10 @@
 | 
			
		||||
			}
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		$scope.getUrl = function() {
 | 
			
		||||
			return $location.absUrl().replace(/#.*$/, '');
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		$scope.setDataFromHash = function() {
 | 
			
		||||
			var hashData = $location.search();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -718,7 +718,7 @@
 | 
			
		||||
										<input type="text"
 | 
			
		||||
											class="form-control form-control-sm"
 | 
			
		||||
											readonly
 | 
			
		||||
											ng-value="location.absUrl()">
 | 
			
		||||
											ng-value="getUrl()">
 | 
			
		||||
									</div>
 | 
			
		||||
								</div>
 | 
			
		||||
								<div class="form-group row mt-4">
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
# Generated by nginxconfig.io<!--
 | 
			
		||||
 | 
			
		||||
✔ isDirty --><span ng-if="isDirty">
 | 
			
		||||
# {{ location.absUrl() }}</span>
 | 
			
		||||
# {{ getUrl() }}</span>
 | 
			
		||||
 | 
			
		||||
user {{ data.user }};
 | 
			
		||||
pid {{ data.pid}};
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user