Merge pull request #8 from interactivefics/mutation-observer-bug
Fix bug with comment boxes in Chrome
This commit is contained in:
		
						commit
						f0f0ecd1a4
					
				|  | @ -74,8 +74,9 @@ const replaceText = (textNode, input_word, replace_value) => { | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| function walk(node, v, p){ | function walk(node, v, p){ | ||||||
| 	// I stole this function from here:
 | 	// I stole the base to this function from here:
 | ||||||
| 	// http://is.gd/mwZp7E
 | 	// http://is.gd/mwZp7E
 | ||||||
|  | 	if (node.contentEditable != 'true' && node.type != 'textarea' && node.type != 'input') { | ||||||
| 		var child, next; | 		var child, next; | ||||||
| 		switch (node.nodeType){ | 		switch (node.nodeType){ | ||||||
| 			case 1:  // Element
 | 			case 1:  // Element
 | ||||||
|  | @ -92,6 +93,7 @@ function walk(node, v, p){ | ||||||
| 				replaceText(node, v, p); | 				replaceText(node, v, p); | ||||||
| 				break; | 				break; | ||||||
| 		} | 		} | ||||||
|  | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| replaceAll() | replaceAll() | ||||||
|  |  | ||||||
|  | @ -3,7 +3,7 @@ | ||||||
|   "manifest_version": 2, |   "manifest_version": 2, | ||||||
|   "name": "InteractiveFics", |   "name": "InteractiveFics", | ||||||
|   "author": "mariamrf", |   "author": "mariamrf", | ||||||
|   "version": "5.1.0", |   "version": "5.1.1", | ||||||
|   "description": "Replaces Y/N & other variables in Reader Insert/second person fics with words of your choice.", |   "description": "Replaces Y/N & other variables in Reader Insert/second person fics with words of your choice.", | ||||||
|   "browser_action": { |   "browser_action": { | ||||||
|   	"default_title": "InteractiveFics", |   	"default_title": "InteractiveFics", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Mariam Maarouf
						Mariam Maarouf