File tree 1 file changed +8
-4
lines changed
AutoPatchWork.safariextension/js
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -385,16 +385,20 @@ function get_manifest(callback) {
385
385
function init_css ( ) {
386
386
var url = 'css/AutoPatchWork.css' ;
387
387
var xhr = new XMLHttpRequest ( ) ;
388
- xhr . open ( 'GET' , url , false ) ;
388
+ xhr . open ( 'GET' , url , true ) ;
389
+ xhr . onload = function ( ) {
390
+ AutoPatchWork . save_css ( xhr . responseText ) ;
391
+ } ;
389
392
xhr . send ( null ) ;
390
- AutoPatchWork . save_css ( xhr . responseText ) ;
391
393
}
392
394
function init_barcss ( ) {
393
395
var url = 'css/AutoPatchWork.bar.css' ;
394
396
var xhr = new XMLHttpRequest ( ) ;
395
- xhr . open ( 'GET' , url , false ) ;
397
+ xhr . open ( 'GET' , url , true ) ;
398
+ xhr . onload = function ( ) {
399
+ AutoPatchWork . barcss = xhr . responseText ;
400
+ } ;
396
401
xhr . send ( null ) ;
397
- AutoPatchWork . barcss = xhr . responseText ;
398
402
}
399
403
function UpdateSiteinfo ( callback , error_back , force ) {
400
404
var sso = 'http://os0x.heteml.jp/ss-onet/json/wedataAutoPagerizeSITEINFO.json' ;
You can’t perform that action at this time.
0 commit comments