Browse Source

fix: TypeError "onHeadersReceived is not a function"

close #3433
Tienson Qin 4 years ago
parent
commit
1feb695241
1 changed files with 2 additions and 0 deletions
  1. 2 0
      externs.js

+ 2 - 0
externs.js

@@ -118,6 +118,8 @@ dummy.convertToViewportRectangle = function() {};
 dummy.init = function() {};
 dummy.commit = function() {};
 dummy.raw = function() {};
+dummy.onHeadersReceived = function() {};
+dummy.responseHeaders = function() {};
 
 /**
  * @typedef {{