mirror of https://github.com/calzoneman/sync.git
Fix initialization race condition and make it toggleable
This commit is contained in:
parent
af663bfbcf
commit
050dec4d0f
|
@ -12,8 +12,7 @@ var YouTube = require("cytube-mediaquery/lib/provider/youtube");
|
|||
var Vimeo = require("cytube-mediaquery/lib/provider/vimeo");
|
||||
var Vidme = require("cytube-mediaquery/lib/provider/vidme");
|
||||
var Streamable = require("cytube-mediaquery/lib/provider/streamable");
|
||||
require("cytube-mediaquery/lib/provider/googledrive").setHTML5HackEnabled(
|
||||
Config.get("google-drive.html5-hack-enabled"));
|
||||
var GoogleDrive = require("cytube-mediaquery/lib/provider/googledrive");
|
||||
|
||||
/*
|
||||
* Preference map of quality => youtube formats.
|
||||
|
@ -502,6 +501,7 @@ var Getters = {
|
|||
|
||||
/* google docs */
|
||||
gd: function (id, callback) {
|
||||
GoogleDrive.setHTML5HackEnabled(Config.get("google-drive.html5-hack-enabled"));
|
||||
var data = {
|
||||
type: "googledrive",
|
||||
kind: "single",
|
||||
|
|
Loading…
Reference in New Issue