forked from rojo-rbx/rojo
Clean up development a little bit -- when 'dev' is set to true, port 8001 is used
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
return {
|
||||
pollingRate = 0.3,
|
||||
version = "DEV",
|
||||
version = "v0.2.2",
|
||||
dev = false,
|
||||
}
|
||||
|
||||
@@ -8,7 +8,9 @@ local Config = require(script.Parent.Config)
|
||||
local function main()
|
||||
local pluginInstance = Plugin.new()
|
||||
|
||||
local toolbar = plugin:CreateToolbar("Rojo Plugin v" .. Config.version)
|
||||
local displayedVersion = Config.dev and "DEV" or Config.version
|
||||
|
||||
local toolbar = plugin:CreateToolbar("Rojo Plugin v" .. displayedVersion)
|
||||
|
||||
toolbar:CreateButton("Test Connection", "Connect to Rojo Server", "")
|
||||
.Click:Connect(function()
|
||||
|
||||
@@ -19,7 +19,7 @@ Plugin.__index = Plugin
|
||||
|
||||
function Plugin.new()
|
||||
local address = "localhost"
|
||||
local port = 8000
|
||||
local port = Config.dev and 8001 or 8000
|
||||
|
||||
local remote = ("http://%s:%d"):format(address, port)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user