Commit 5c35815d authored by xiyuan's avatar xiyuan Committed by Commit bot

sign-in: Don't inject into none http/https page.

BUG=473077

Review URL: https://codereview.chromium.org/1072643002

Cr-Commit-Position: refs/heads/master@{#324368}
parent b42c0a9f
...@@ -266,6 +266,12 @@ cr.define('cr.login', function() { ...@@ -266,6 +266,12 @@ cr.define('cr.login', function() {
return; return;
} }
// Skip for none http/https url.
if (e.url.indexOf('https://') != 0 &&
e.url.indexOf('http://') != 0) {
return;
}
this.isSamlPage_ = this.pendingIsSamlPage_; this.isSamlPage_ = this.pendingIsSamlPage_;
this.injectJs_(); this.injectJs_();
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment