by shaunxcode · 17y ago · 0 comments
uncaught exception: [Exception... "Component returned failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsISelection.getRangeAt]" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: http://www.clipng.com/static/scrape.js :: <TOP_LEVEL> :: line 20" data: no] [Break on this error] undefined e.target.indexOf is not a function [Break on this error] if(goToURL && e.target.indexOf('http')>=0) {
Seem to be the main culprits.
Also I just realized it may have not been intended to work that way so I went back and just selected a paragraph of text and hit clip and it worked as expected. anyway hope that helps.