Last active
March 25, 2017 20:22
-
-
Save DigiTec/642650ccdedae8111964470230d0e2a0 to your computer and use it in GitHub Desktop.
Chromium confessions blog entry on plumbing a bool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bool HTMLElementElement::isNewFeatureAllowed(bool defaultValue) { | |
KURL frame_url = document.url(); | |
if (frame_url.host() == "example.com" || frame_url.host().endsWith(".example.com")) { | |
return false; | |
} | |
return defaultValue; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment