问题
Is there an iOS API that would tell me if my content blocker for Safari is enabled? Or do I have to resort to some kind of heuristics if I want to know that?
回答1:
Have been wondering the same question and eventually came up with this method:
break the structure of your .json
file and see if you get an error in debuger. If you do - everything is fine and you should revert your .json
to the normal state and carry on.
来源:https://stackoverflow.com/questions/32970259/how-do-i-know-if-my-ios-safari-content-blocker-is-enabled